From f2bf08414f8006f0ddedc293804566b3b154428c Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 07 Jul 2004 06:29:27 +0000 Subject: Fix of the address type == other problem --- (limited to 'kabc/address.cpp') diff --git a/kabc/address.cpp b/kabc/address.cpp index 26e0b6a..c820a6c 100644 --- a/kabc/address.cpp +++ b/kabc/address.cpp @@ -290,6 +290,26 @@ Address::TypeList Address::typeList() QString Address::typeLabel( int type ) { + QString label; + if ( type & Dom ) + label += i18n("Domestic")+" "; + if ( type & Intl ) + label += i18n("International")+" "; + if ( type & Postal ) + label += i18n("Postal")+" "; + if ( type & Parcel ) + label += i18n("Parcel")+" "; + if ( type & Work ) + label += i18n("Work Address", "Work")+" "; + if ( type & Home ) + label += i18n("Home Address", "Home") +" "; + if ( type & Pref ) + label += i18n("Preferred Address", "(p)"); + if ( label.isEmpty() ) + label = i18n("Other"); + return label; + +#if 0 switch ( type ) { case Dom: return i18n("Domestic"); @@ -316,6 +336,7 @@ QString Address::typeLabel( int type ) return i18n("Other"); break; } +#endif } void Address::dump() const -- cgit v0.9.0.2