author | harlekin <harlekin> | 2004-05-11 22:41:22 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-05-11 22:41:22 (UTC) |
commit | 7a9cabb330284777113bb544139843dcf0593628 (patch) (unidiff) | |
tree | ec706423d2abc2b7d2dcbbab8f3d846bcff45ee0 /core/applets/batteryapplet/batterystatus.h | |
parent | 81104f00cb87962333a024d3fa5ff6cf3d8d7d83 (diff) | |
download | opie-7a9cabb330284777113bb544139843dcf0593628.zip opie-7a9cabb330284777113bb544139843dcf0593628.tar.gz opie-7a9cabb330284777113bb544139843dcf0593628.tar.bz2 |
the "bett ery" commit, batteryapplet is now a popup, only shows second battery on ipaq if a second battery is present
Diffstat (limited to 'core/applets/batteryapplet/batterystatus.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/batteryapplet/batterystatus.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/applets/batteryapplet/batterystatus.h b/core/applets/batteryapplet/batterystatus.h index a5ab804..bb95ece 100644 --- a/core/applets/batteryapplet/batterystatus.h +++ b/core/applets/batteryapplet/batterystatus.h | |||
@@ -22,3 +22,3 @@ | |||
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qframe.h> |
24 | 24 | ||
@@ -26,3 +26,3 @@ class PowerStatus; | |||
26 | 26 | ||
27 | class BatteryStatus : public QWidget | 27 | class BatteryStatus : public QFrame |
28 | { | 28 | { |
@@ -30,3 +30,3 @@ class BatteryStatus : public QWidget | |||
30 | public: | 30 | public: |
31 | BatteryStatus( const PowerStatus *s, QWidget *parent=0 ); | 31 | BatteryStatus( const PowerStatus *s, QWidget *parent=0, WFlags f = 0 ); |
32 | ~BatteryStatus(); | 32 | ~BatteryStatus(); |
@@ -34,3 +34,3 @@ public: | |||
34 | void updatePercent( int ); | 34 | void updatePercent( int ); |
35 | 35 | QSize sizeHint() const; | |
36 | protected: | 36 | protected: |
@@ -39,3 +39,6 @@ protected: | |||
39 | bool BatteryStatus::getProcApmStatusIpaq(); | 39 | bool BatteryStatus::getProcApmStatusIpaq(); |
40 | |||
40 | private: | 41 | private: |
42 | QString statusText() const; | ||
43 | QString statusTextIpaq() const; | ||
41 | const PowerStatus *ps; | 44 | const PowerStatus *ps; |
@@ -54,2 +57,3 @@ private: | |||
54 | bool bat2; | 57 | bool bat2; |
58 | bool bat2inserted; | ||
55 | int screenWidth; | 59 | int screenWidth; |