Diffstat (limited to 'noncore/applets/networkapplet/networkapplet.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp index 4e658da..9a08568 100644 --- a/noncore/applets/networkapplet/networkapplet.cpp +++ b/noncore/applets/networkapplet/networkapplet.cpp @@ -31,3 +31,8 @@ #include "networkapplet.h" + +/* OPIE */ +#include <opie2/odebug.h> +#include <opie2/onetwork.h> #include <opie2/otaskbarapplet.h> +#include <qpe/applnk.h> #include <qpe/qlibrary.h> @@ -35,6 +40,6 @@ #include <qpainter.h> -#include <opie2/odebug.h> -#include <opie2/onetwork.h> -#include <qpushbutton.h> +/* QT */ +#include <qhostaddress.h> +#include <qimage.h> #include <qlabel.h> @@ -42,5 +47,5 @@ #include <qlineedit.h> -#include <qtoolbutton.h> -#include <qhostaddress.h> #include <qobjectlist.h> +#include <qpushbutton.h> +#include <qtoolbutton.h> @@ -212,3 +217,6 @@ NetworkApplet::NetworkApplet( QWidget *parent, const char *name ) { - _control = new NetworkAppletControl( this, "control" ); + setFixedHeight( AppLnk::smallIconSize() ); + setFixedWidth( AppLnk::smallIconSize() ); + _pixmap.convertFromImage( Resource::loadImage( "networkapplet/network" ).smoothScale( height(), width() ) ); + _control = new NetworkAppletControl( this, "control" ); } @@ -230,3 +238,3 @@ void NetworkApplet::paintEvent( QPaintEvent* ) QPainter p(this); - p.drawPixmap(0, 2, Resource::loadPixmap( "networkapplet/network" ) ); + p.drawPixmap(0, 2, _pixmap ); } |