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.h | |
parent | 3cdec2fe5b3201a121cfbb2352162fe0cbae0a1d (diff) | |
download | opie-2fbfc7e166235805294b932949f9a24b063d2199.zip opie-2fbfc7e166235805294b932949f9a24b063d2199.tar.gz opie-2fbfc7e166235805294b932949f9a24b063d2199.tar.bz2 |
libopie1-->libopie2
Diffstat (limited to 'core/applets/batteryapplet/battery.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/batteryapplet/battery.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/batteryapplet/battery.h b/core/applets/batteryapplet/battery.h index c2d1216..622c083 100644 --- a/core/applets/batteryapplet/battery.h +++ b/core/applets/batteryapplet/battery.h @@ -14,44 +14,45 @@ ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef BATTERY_H #define BATTERY_H #include <qwidget.h> #include <qguardedptr.h> class PowerStatus; class BatteryStatus; class QTimer; class BatteryMeter : public QWidget { Q_OBJECT public: BatteryMeter( QWidget *parent = 0 ); ~BatteryMeter(); QSize sizeHint() const; + static int position(); protected: void timerEvent( QTimerEvent* ); void paintEvent( QPaintEvent* ); void mousePressEvent( QMouseEvent* ); void mouseReleaseEvent( QMouseEvent* ); protected slots: void chargeTimeout(); protected: QGuardedPtr<BatteryStatus> batteryView; PowerStatus *ps; QTimer *chargeTimer; int percent; bool charging; int style; }; #endif |