From c82f9b40f6023dc7b39ac555cba8c4c313f15ca8 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 07 Apr 2005 07:42:53 +0000 Subject: added fields to kapi --- (limited to 'kabc/phonenumber.cpp') diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index 041effc..4c6231d 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp @@ -177,16 +177,15 @@ QString PhoneNumber::typeLabel( int type ) { QString typeString; + + if ((type & Cell) == Cell) + typeString += i18n("Mobile") +" "; if ((type & Home) == Home) - typeString += i18n("Home"); + typeString += i18n("Home")+" "; else if ((type & Work) == Work) - typeString += i18n("Work"); + typeString += i18n("Work")+" "; - if (!typeString.isEmpty()) - typeString += " "; - if ((type & Cell) == Cell) - typeString += i18n("Mobile") +" "; - if ((type & Sip) == Sip) + if ((type & Sip) == Sip) typeString += i18n("SIP")+" "; if ((type & Car) == Car) typeString += i18n("Car")+" "; -- cgit v0.9.0.2