summaryrefslogtreecommitdiff
authordrw <drw>2005-03-04 22:07:55 (UTC)
committer drw <drw>2005-03-04 22:07:55 (UTC)
commit206e91c510caba81f41704f11b097307d8daa6cb (patch) (side-by-side diff)
tree6170fc7285ca6d5e0cc3574df1768770277e1217
parent9df83023cf5db974ba78b7b562be019791052f2f (diff)
downloadopie-206e91c510caba81f41704f11b097307d8daa6cb.zip
opie-206e91c510caba81f41704f11b097307d8daa6cb.tar.gz
opie-206e91c510caba81f41704f11b097307d8daa6cb.tar.bz2
Scale icons appropriately
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/mainwindow/mainwindowimp.cpp5
1 files changed, 4 insertions, 1 deletions
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
@@ -3,16 +3,17 @@
#include "addconnectionimp.h"
#include "interfaceinformationimp.h"
#include "interfacesetupimp.h"
#include "interfaces.h"
#include "module.h"
/* OPIE */
#include <opie2/odebug.h>
+#include <qpe/applnk.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpeapplication.h>
#include <qpe/config.h>
#include <qpe/qlibrary.h>
#include <qpe/resource.h>
/* QT */
#include <qpushbutton.h>
@@ -515,17 +516,19 @@ void MainWindowImp::updateInterface(Interface *i)
items.insert(i, item);
interfaceItems.insert(item, i);
}
else
item = items[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
QString typeName = "lan";
if(i->getInterfaceName() == "lo")
typeName = "lo";
if(i->getInterfaceName().contains("irda"))