summaryrefslogtreecommitdiffstats
path: root/kweather/weatherservice.cpp
diff options
context:
space:
mode:
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)