From 206e91c510caba81f41704f11b097307d8daa6cb Mon Sep 17 00:00:00 2001 From: drw Date: Fri, 04 Mar 2005 22:07:55 +0000 Subject: Scale icons appropriately --- diff --git a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp index 8feb7a5..f83e370 100644 --- a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp @@ -8,6 +8,7 @@ /* OPIE */ #include +#include #include #include #include @@ -520,7 +521,9 @@ void MainWindowImp::updateInterface(Interface *i) // Update the icons and information #ifdef QWS - item->setPixmap(0, (Resource::loadPixmap(i->getStatus() ? "up": "down"))); + QPixmap pic; + pic.convertFromImage( Resource::loadImage( i->getStatus() ? "up": "down" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + item->setPixmap(0, ( pic )); #else item->setPixmap(0, (SmallIcon(i->getStatus() ? "up": "down"))); #endif -- cgit v0.9.0.2