-rw-r--r-- | noncore/applets/networkapplet/networkapplet.cpp | 20 | ||||
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.h | 2 |
2 files changed, 16 insertions, 6 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 @@ | |||
31 | #include "networkapplet.h" | 31 | #include "networkapplet.h" |
32 | |||
33 | /* OPIE */ | ||
34 | #include <opie2/odebug.h> | ||
35 | #include <opie2/onetwork.h> | ||
32 | #include <opie2/otaskbarapplet.h> | 36 | #include <opie2/otaskbarapplet.h> |
37 | #include <qpe/applnk.h> | ||
33 | #include <qpe/qlibrary.h> | 38 | #include <qpe/qlibrary.h> |
@@ -35,6 +40,6 @@ | |||
35 | #include <qpainter.h> | 40 | #include <qpainter.h> |
36 | #include <opie2/odebug.h> | ||
37 | #include <opie2/onetwork.h> | ||
38 | 41 | ||
39 | #include <qpushbutton.h> | 42 | /* QT */ |
43 | #include <qhostaddress.h> | ||
44 | #include <qimage.h> | ||
40 | #include <qlabel.h> | 45 | #include <qlabel.h> |
@@ -42,5 +47,5 @@ | |||
42 | #include <qlineedit.h> | 47 | #include <qlineedit.h> |
43 | #include <qtoolbutton.h> | ||
44 | #include <qhostaddress.h> | ||
45 | #include <qobjectlist.h> | 48 | #include <qobjectlist.h> |
49 | #include <qpushbutton.h> | ||
50 | #include <qtoolbutton.h> | ||
46 | 51 | ||
@@ -212,2 +217,5 @@ NetworkApplet::NetworkApplet( QWidget *parent, const char *name ) | |||
212 | { | 217 | { |
218 | setFixedHeight( AppLnk::smallIconSize() ); | ||
219 | setFixedWidth( AppLnk::smallIconSize() ); | ||
220 | _pixmap.convertFromImage( Resource::loadImage( "networkapplet/network" ).smoothScale( height(), width() ) ); | ||
213 | _control = new NetworkAppletControl( this, "control" ); | 221 | _control = new NetworkAppletControl( this, "control" ); |
@@ -230,3 +238,3 @@ void NetworkApplet::paintEvent( QPaintEvent* ) | |||
230 | QPainter p(this); | 238 | QPainter p(this); |
231 | p.drawPixmap(0, 2, Resource::loadPixmap( "networkapplet/network" ) ); | 239 | p.drawPixmap(0, 2, _pixmap ); |
232 | } | 240 | } |
diff --git a/noncore/applets/networkapplet/networkapplet.h b/noncore/applets/networkapplet/networkapplet.h index 7b5fa97..8022537 100644 --- a/noncore/applets/networkapplet/networkapplet.h +++ b/noncore/applets/networkapplet/networkapplet.h | |||
@@ -38,2 +38,3 @@ | |||
38 | #include <qlineedit.h> | 38 | #include <qlineedit.h> |
39 | #include <qpixmap.h> | ||
39 | 40 | ||
@@ -108,2 +109,3 @@ class NetworkApplet : public OTaskbarApplet | |||
108 | NetworkAppletControl* _control; | 109 | NetworkAppletControl* _control; |
110 | QPixmap _pixmap; | ||
109 | }; | 111 | }; |