OSDN Git Service

generic: adjust to KLocale changes
[kde/kde-extraapps.git] / kdeplasma-addons / libs / plasmaweather / weatherpopupapplet.cpp
index 8742ac8..8c01cd2 100644 (file)
@@ -275,7 +275,7 @@ void WeatherPopupApplet::configChanged()
 
     KConfigGroup cfg = config();
 
-    if (KGlobal::locale()->measureSystem() == KLocale::Metric) {
+    if (KGlobal::locale()->measureSystem() == QLocale::MetricSystem) {
         d->temperatureUnit = cfg.readEntry("temperatureUnit", "C");
         d->speedUnit = cfg.readEntry("speedUnit", "m/s");
         d->pressureUnit = cfg.readEntry("pressureUnit", "hPa");