From 037b7019e8efbc99f18a9ad9e7bc8ba6cd7c0abd Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Wed, 17 Nov 2021 11:58:28 +0200 Subject: [PATCH] KWeather: Use TDEIconLoader with absolute path to load icons. This provides us with free built-in SVG support. Signed-off-by: Mavridis Philippe --- kweather/weatherservice.cpp | 7 ++++--- 1 file 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)