summaryrefslogtreecommitdiff
path: root/core/applets/batteryapplet/battery.cpp
authormickeyl <mickeyl>2004-03-01 14:31:39 (UTC)
committer mickeyl <mickeyl>2004-03-01 14:31:39 (UTC)
commit2fbfc7e166235805294b932949f9a24b063d2199 (patch) (unidiff)
tree353ef0424c54f6443852863c87cdcbfeee696d1c /core/applets/batteryapplet/battery.cpp
parent3cdec2fe5b3201a121cfbb2352162fe0cbae0a1d (diff)
downloadopie-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.cpp13
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 @@
20#include "battery.h" 20#include "battery.h"
21#include "batterystatus.h" 21#include "batterystatus.h"
22 22
23/* OPIE */
24#include <opie2/otaskbarapplet.h>
23#include <qpe/applnk.h> 25#include <qpe/applnk.h>
24#include <qpe/config.h> 26#include <qpe/config.h>
25#include <qpe/power.h> 27#include <qpe/power.h>
26#include <qpe/qpeapplication.h> 28#include <qpe/qpeapplication.h>
27 29
30/* QT */
28#include <qpainter.h> 31#include <qpainter.h>
29#include <qtimer.h> 32#include <qtimer.h>
30 33
@@ -168,3 +171,13 @@ void BatteryMeter::paintEvent( QPaintEvent* )
168 } 171 }
169} 172}
170 173
174int BatteryMeter::position()
175{
176 return 8;
177}
178
179Q_EXPORT_INTERFACE()
180{
181 Q_CREATE_INSTANCE( OTaskbarAppletWrapper<BatteryMeter> );
182}
183