diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-11-13 14:17:53 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2022-01-14 12:36:53 +0200 |
commit | 0e7033dd09c78eed673bfcde768483f6ad925ff7 (patch) | |
tree | a4f4484e6c154ff28c5d67697d6de976807fbf83 /kweather/weatherlib.cpp | |
parent | 5fea80f5693a74ee736300944c0c7204a663b92b (diff) | |
download | tdetoys-0e7033dd09c78eed673bfcde768483f6ad925ff7.tar.gz tdetoys-0e7033dd09c78eed673bfcde768483f6ad925ff7.zip |
KWeather: updated icon handling.
The newly added class abstracts away icon names from the main code
and has the ability to fall back to "safer" icon choices so as to
ensure (if possible) icon theme consistency.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kweather/weatherlib.cpp')
-rw-r--r-- | kweather/weatherlib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp index c628d77..32d653c 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -39,6 +39,7 @@ email : geiseri@msoe.edu #include "stationdatabase.h" #include "sun.h" #include "weatherlib.h" +#include "weather_icon.h" #include "weatherlib.moc" @@ -271,7 +272,7 @@ TQString WeatherLib::windChill(const TQString &stationID){ TQString WeatherLib::iconName(const TQString &stationID){ - TQString result("dunno"); + TQString result = WeatherIcon::unknown(); // isEmpty is true for null or 0 length strings if ( !stationID.isEmpty() ) |