summaryrefslogtreecommitdiffstats
path: root/kweather/stationsconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kweather/stationsconfigwidget.cpp')
-rw-r--r--kweather/stationsconfigwidget.cpp6
1 files changed, 2 insertions, 4 deletions
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 <tdelocale.h>
#include <kpushbutton.h>
#include <kstandarddirs.h>
+#include <kiconloader.h>
#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())