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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/weather/ions
From:       Shawn Starr <shawn.starr () rogers ! com>
Date:       2009-08-06 23:11:06
Message-ID: 1249600266.994176.19617.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1008126 by spstarr:

Add Percent unit to weatherutils

 M  +6 -0      weatherutils.cpp  
 M  +2 -1      weatherutils.h  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/weather/ions/weatherutils.cpp \
#1008125:1008126 @@ -273,6 +273,12 @@
         else
             return i18nc("Kelvin, temperature unit", "K");
 
+    case WeatherUtils::Precent:
+        if (plain)
+            return QString("%");
+        else
+            return i18nc("Precent, measure unit", "%");
+            
     case WeatherUtils::KilometersPerHour:
         if (plain)
             return QString("kmh");
--- trunk/KDE/kdebase/workspace/plasma/dataengines/weather/ions/weatherutils.h \
#1008125:1008126 @@ -40,7 +40,8 @@
 enum TemperatureUnit { NoUnit = 0, DegreeUnit, Celsius, Fahrenheit, Kelvin };
 enum SpeedUnit { KilometersPerHour = 100, MetersPerSecond, MilesPerHour, Knots, \
Beaufort };  enum DistanceUnit { Centimeters = 200, Millimeters, Inches, Kilometers, \
                Miles };
-enum PressureUnit { Kilopascals = 300, InchesHG, Millibars, Hectopascals }; // FIXME \
deprecate millibars? +enum PressureUnit { Kilopascals = 300, InchesHG, Millibars, \
Hectopascals }; +enum MeasureUnit { Percent = 400 };
 
 enum Errors { InvalidConversion = -100, NoSuchUnit = -110 };
 


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

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