author | mickeyl <mickeyl> | 2004-03-01 14:31:39 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-01 14:31:39 (UTC) |
commit | 2fbfc7e166235805294b932949f9a24b063d2199 (patch) (side-by-side diff) | |
tree | 353ef0424c54f6443852863c87cdcbfeee696d1c /core/applets/batteryapplet/battery.cpp | |
parent | 3cdec2fe5b3201a121cfbb2352162fe0cbae0a1d (diff) | |
download | opie-2fbfc7e166235805294b932949f9a24b063d2199.zip opie-2fbfc7e166235805294b932949f9a24b063d2199.tar.gz opie-2fbfc7e166235805294b932949f9a24b063d2199.tar.bz2 |
libopie1-->libopie2
Diffstat (limited to 'core/applets/batteryapplet/battery.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/batteryapplet/battery.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/applets/batteryapplet/battery.cpp b/core/applets/batteryapplet/battery.cpp index 9a9ddf6..fed9b34 100644 --- a/core/applets/batteryapplet/battery.cpp +++ b/core/applets/batteryapplet/battery.cpp @@ -20,11 +20,14 @@ #include "battery.h" #include "batterystatus.h" +/* OPIE */ +#include <opie2/otaskbarapplet.h> #include <qpe/applnk.h> #include <qpe/config.h> #include <qpe/power.h> #include <qpe/qpeapplication.h> +/* QT */ #include <qpainter.h> #include <qtimer.h> @@ -168,3 +171,13 @@ void BatteryMeter::paintEvent( QPaintEvent* ) } } +int BatteryMeter::position() +{ + return 8; +} + +Q_EXPORT_INTERFACE() +{ + Q_CREATE_INSTANCE( OTaskbarAppletWrapper<BatteryMeter> ); +} + |