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>
pull/18/head
Mavridis Philippe 3 years ago
parent d2b868dfa4
commit 037b7019e8
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -137,9 +137,10 @@ TQPixmap WeatherService::currentIcon(const TQString &stationID)
TQPixmap WeatherService::icon(const TQString &stationID) TQPixmap WeatherService::icon(const TQString &stationID)
{ {
kdDebug(12006) << "Get the current weather icon.." << endl; kdDebug(12006) << "Get the current weather icon.." << endl;
TQString icon = iconFileName(stationID); return kapp->iconLoader()->loadIcon(
TQPixmap theIcon = TQPixmap(icon); iconFileName(stationID),
return theIcon; TDEIcon::Desktop
);
} }
TQString WeatherService::currentIconString(const TQString &stationID) TQString WeatherService::currentIconString(const TQString &stationID)

Loading…
Cancel
Save