summaryrefslogtreecommitdiffabout
path: root/kabc/address.cpp
authorzautrix <zautrix>2004-07-07 06:29:27 (UTC)
committer zautrix <zautrix>2004-07-07 06:29:27 (UTC)
commitf2bf08414f8006f0ddedc293804566b3b154428c (patch) (unidiff)
treea611e80fb264c5f2c8551982b1bc6a6da6d8e6d6 /kabc/address.cpp
parentc9c0fefaead651c073318e8242d86675519dbcf6 (diff)
downloadkdepimpi-f2bf08414f8006f0ddedc293804566b3b154428c.zip
kdepimpi-f2bf08414f8006f0ddedc293804566b3b154428c.tar.gz
kdepimpi-f2bf08414f8006f0ddedc293804566b3b154428c.tar.bz2
Fix of the address type == other problem
Diffstat (limited to 'kabc/address.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/address.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/kabc/address.cpp b/kabc/address.cpp
index 26e0b6a..c820a6c 100644
--- a/kabc/address.cpp
+++ b/kabc/address.cpp
@@ -287,12 +287,32 @@ Address::TypeList Address::typeList()
287 287
288 return list; 288 return list;
289} 289}
290 290
291QString Address::typeLabel( int type ) 291QString Address::typeLabel( int type )
292{ 292{
293 QString label;
294 if ( type & Dom )
295 label += i18n("Domestic")+" ";
296 if ( type & Intl )
297 label += i18n("International")+" ";
298 if ( type & Postal )
299 label += i18n("Postal")+" ";
300 if ( type & Parcel )
301 label += i18n("Parcel")+" ";
302 if ( type & Work )
303 label += i18n("Work Address", "Work")+" ";
304 if ( type & Home )
305 label += i18n("Home Address", "Home") +" ";
306 if ( type & Pref )
307 label += i18n("Preferred Address", "(p)");
308 if ( label.isEmpty() )
309 label = i18n("Other");
310 return label;
311
312#if 0
293 switch ( type ) { 313 switch ( type ) {
294 case Dom: 314 case Dom:
295 return i18n("Domestic"); 315 return i18n("Domestic");
296 break; 316 break;
297 case Intl: 317 case Intl:
298 return i18n("International"); 318 return i18n("International");
@@ -313,12 +333,13 @@ QString Address::typeLabel( int type )
313 return i18n("Preferred Address"); 333 return i18n("Preferred Address");
314 break; 334 break;
315 default: 335 default:
316 return i18n("Other"); 336 return i18n("Other");
317 break; 337 break;
318 } 338 }
339#endif
319} 340}
320 341
321void Address::dump() const 342void Address::dump() const
322{ 343{
323 qDebug("Address::dump() +++++++++++++++++ "); 344 qDebug("Address::dump() +++++++++++++++++ ");
324#if 0 345#if 0