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

List:       kde-commits
Subject:    playground/base/plasma/wallpapers/weather
From:       Pino Toscano <pino () kde ! org>
Date:       2009-03-31 19:40:36
Message-ID: 1238528436.305132.18004.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 947571 by pino:

set the spin box suffix in the proper way (based on the kde version)


 M  +6 -1      weather.cpp  


--- trunk/playground/base/plasma/wallpapers/weather/weather.cpp #947570:947571
@@ -31,6 +31,7 @@
 #include <KDebug>
 #include <KMessageBox>
 #include <KStandardDirs>
+#include <kdeversion.h>
 
 #include <Plasma/DataEngineManager>
 
@@ -97,7 +98,11 @@
     connect(locationsUi.pluginComboList, SIGNAL(currentIndexChanged(int)), this, \
                SLOT(pluginIndexChanged(int)));
     connect(locationsUi.locationEdit, SIGNAL(returnPressed()), this, \
SLOT(getValidation()));  
-    locationsUi.weatherUpdateSpin->setSuffix(ki18np(" minute", " \
minutes").toString()); +#if KDE_IS_VERSION(4, 2, 60)
+    locationsUi.weatherUpdateSpin->setSuffix(ki18np(" minute", " minutes"));
+#else
+    locationsUi.weatherUpdateSpin->setSuffix(i18n(" minutes"));
+#endif
     locationsUi.weatherUpdateSpin->setValue(m_weatherUpdateTime);
     locationsUi.validatedPlaceLabel->setText(m_activePlace);
 


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

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