From fe6de6f4bc8a0a7d86c2c3dc6413170214206cff Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 1 Jun 2023 16:30:11 +0300 Subject: KWeather: improve icon loading and other fixes - Fix pixelated icons (issue #19) - Fix "network offline" state - Add helper `bool weatherDataAvailable(TQString stationID)` DCOP function - Fix compatibility with old DCOP function signatures - Prevent double "Network is offline" strings in weather data. This commit introduces some new and renamed DCOP calls. Old function signatures are kept for compatibility, but are mraked as deprecated. Signed-off-by: Mavridis Philippe (cherry picked from commit bc71670331e16b15fc30214cb85c409b8c91bb9c) --- kweather/stationsconfigwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kweather/stationsconfigwidget.cpp') diff --git a/kweather/stationsconfigwidget.cpp b/kweather/stationsconfigwidget.cpp index b02d4be..66d7c22 100644 --- a/kweather/stationsconfigwidget.cpp +++ b/kweather/stationsconfigwidget.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include "stationsconfigwidget.h" #include "weatherservice_stub.h" @@ -129,10 +130,7 @@ void StationsConfigWidget::scanStations() mSelectedStations->clear(); for ( uint i = 0; i < list.count(); ++i ) { - TQPixmap pm = mService->icon( list[ i ] ); - TQImage img = pm.convertToImage(); - img = img.smoothScale( 22, 22 ); - pm.convertFromImage( img ); + TQPixmap pm = mService->icon( list[ i ], TDEIcon::SizeSmall ); TQString uid = list[ i ]; if (mStationMap[ uid ].isEmpty()) -- cgit v1.2.1