summaryrefslogtreecommitdiffstats
path: root/kweather/weatherservice.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-11-17 11:58:28 +0200
committerMavridis Philippe <mavridisf@gmail.com>2022-01-14 12:37:09 +0200
commit037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd (patch)
treed0b8eb1099919532b8cafe1ea0038563b6662223 /kweather/weatherservice.cpp
parentd2b868dfa4900f549802ce4a3f2f061ba31bdb04 (diff)
downloadtdetoys-037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd.tar.gz
tdetoys-037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd.zip
KWeather: Use TDEIconLoader with absolute path to load icons.
This provides us with free built-in SVG support. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kweather/weatherservice.cpp')
-rw-r--r--kweather/weatherservice.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kweather/weatherservice.cpp b/kweather/weatherservice.cpp
index f7e23d6..f54d803 100644
--- a/kweather/weatherservice.cpp
+++ b/kweather/weatherservice.cpp
@@ -137,9 +137,10 @@ TQPixmap WeatherService::currentIcon(const TQString &stationID)
TQPixmap WeatherService::icon(const TQString &stationID)
{
kdDebug(12006) << "Get the current weather icon.." << endl;
- TQString icon = iconFileName(stationID);
- TQPixmap theIcon = TQPixmap(icon);
- return theIcon;
+ return kapp->iconLoader()->loadIcon(
+ iconFileName(stationID),
+ TDEIcon::Desktop
+ );
}
TQString WeatherService::currentIconString(const TQString &stationID)