Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp index 6ef2e44..f244426 100644 --- a/noncore/applets/wirelessapplet/wireless.cpp +++ b/noncore/applets/wirelessapplet/wireless.cpp | |||
@@ -23,12 +23,13 @@ | |||
23 | #include "nowireless.xpm" | 23 | #include "nowireless.xpm" |
24 | 24 | ||
25 | /* OPIE */ | 25 | /* OPIE */ |
26 | #include <opie2/onetwork.h> | 26 | #include <opie2/onetwork.h> |
27 | #include <opie2/otaskbarapplet.h> | 27 | #include <opie2/otaskbarapplet.h> |
28 | #include <qpe/config.h> | 28 | #include <qpe/config.h> |
29 | #include <qpe/qpeapplication.h> | ||
29 | 30 | ||
30 | /* QT */ | 31 | /* QT */ |
31 | #include <qradiobutton.h> | 32 | #include <qradiobutton.h> |
32 | #include <qpushbutton.h> | 33 | #include <qpushbutton.h> |
33 | #include <qpainter.h> | 34 | #include <qpainter.h> |
34 | #include <qlabel.h> | 35 | #include <qlabel.h> |
@@ -45,12 +46,14 @@ | |||
45 | #define STYLE_BARS 0 | 46 | #define STYLE_BARS 0 |
46 | #define STYLE_ANTENNA 1 | 47 | #define STYLE_ANTENNA 1 |
47 | 48 | ||
48 | //#define MDEBUG | 49 | //#define MDEBUG |
49 | #undef MDEBUG | 50 | #undef MDEBUG |
50 | 51 | ||
52 | using namespace Opie::Ui; | ||
53 | using namespace Opie::Net; | ||
51 | WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name ) | 54 | WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name ) |
52 | : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) | 55 | : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) |
53 | { | 56 | { |
54 | 57 | ||
55 | readConfig(); | 58 | readConfig(); |
56 | writeConfigEntry( "UpdateFrequency", updateFrequency ); | 59 | writeConfigEntry( "UpdateFrequency", updateFrequency ); |
@@ -547,12 +550,8 @@ void WirelessApplet::paintEvent( QPaintEvent* ) | |||
547 | 550 | ||
548 | int WirelessApplet::position() | 551 | int WirelessApplet::position() |
549 | { | 552 | { |
550 | return 6; | 553 | return 6; |
551 | } | 554 | } |
552 | 555 | ||
553 | 556 | EXPORT_OPIE_APPLET_v1( WirelessApplet ) | |
554 | Q_EXPORT_INTERFACE() | ||
555 | { | ||
556 | Q_CREATE_INSTANCE( OTaskbarAppletWrapper<WirelessApplet> ); | ||
557 | } | ||
558 | 557 | ||