[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/widgets
From:       John Layt <john () layt ! net>
Date:       2010-06-08 11:27:08
Message-ID: 20100608112708.76ED6AC8CE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1135929 by jlayt:

Show country name in KTimeZoneWidget instead of country code to make searching
easier.

See http://reviewboard.kde.org/r/4247/



 M  +5 -0      ktimezonewidget.cpp  


--- trunk/KDE/kdelibs/kdeui/widgets/ktimezonewidget.cpp #1135928:1135929
@@ -109,7 +109,12 @@
 
     QTreeWidgetItem *listItem = new QTreeWidgetItem( this );
     listItem->setText( Private::CityColumn, continentCity[ continentCity.count() - 1 ] );
+    QString countryName = KGlobal::locale()->countryCodeToName( zone.countryCode() );
+    if ( countryName.isEmpty() ) {
     continentCity[ continentCity.count() - 1 ] = zone.countryCode();
+    } else {
+      continentCity[ continentCity.count() - 1 ] = countryName;
+    }
 
     listItem->setText( Private::RegionColumn, continentCity.join( QChar('/') ) );
     listItem->setText( Private::CommentColumn, comment );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic