-rw-r--r-- | core/applets/batteryapplet/batterystatus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/batteryapplet/batterystatus.h b/core/applets/batteryapplet/batterystatus.h index 4da446d..bf8d75c 100644 --- a/core/applets/batteryapplet/batterystatus.h +++ b/core/applets/batteryapplet/batterystatus.h | |||
@@ -17,39 +17,39 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef BATTERY_STATUS_H | 20 | #ifndef BATTERY_STATUS_H |
21 | #define BATTERY_STATUS_H | 21 | #define BATTERY_STATUS_H |
22 | 22 | ||
23 | #include <qframe.h> | 23 | #include <qframe.h> |
24 | 24 | ||
25 | class PowerStatus; | 25 | class PowerStatus; |
26 | 26 | ||
27 | class BatteryStatus : public QFrame | 27 | class BatteryStatus : public QFrame |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | public: | 30 | public: |
31 | BatteryStatus( const PowerStatus *s, QWidget *parent=0, WFlags f = 0 ); | 31 | BatteryStatus( const PowerStatus *s, QWidget *parent=0, WFlags f = 0 ); |
32 | ~BatteryStatus(); | 32 | ~BatteryStatus(); |
33 | void BatteryStatus::UpdateBatteryStatus(); | 33 | void UpdateBatteryStatus(); |
34 | void updatePercent( int ); | 34 | void updatePercent( int ); |
35 | QSize sizeHint() const; | 35 | QSize sizeHint() const; |
36 | protected: | 36 | protected: |
37 | void drawSegment( QPainter *p, const QRect &r, const QColor &topgrad, const QColor &botgrad, const QColor &highlight, int hightlight_height ); | 37 | void drawSegment( QPainter *p, const QRect &r, const QColor &topgrad, const QColor &botgrad, const QColor &highlight, int hightlight_height ); |
38 | void paintEvent( QPaintEvent *pe ); | 38 | void paintEvent( QPaintEvent *pe ); |
39 | bool BatteryStatus::getProcApmStatusIpaq(); | 39 | bool getProcApmStatusIpaq(); |
40 | 40 | ||
41 | private: | 41 | private: |
42 | QString statusText() const; | 42 | QString statusText() const; |
43 | QString statusTextIpaq() const; | 43 | QString statusTextIpaq() const; |
44 | const PowerStatus *ps; | 44 | const PowerStatus *ps; |
45 | int percent; | 45 | int percent; |
46 | int ipaqPercent; | 46 | int ipaqPercent; |
47 | int jackPercent; | 47 | int jackPercent; |
48 | int jackMinutes; | 48 | int jackMinutes; |
49 | QString perc1; | 49 | QString perc1; |
50 | QString sec1; | 50 | QString sec1; |
51 | QString perc2; | 51 | QString perc2; |
52 | QString sec2; | 52 | QString sec2; |
53 | QString ipaqStatus; | 53 | QString ipaqStatus; |
54 | QString jackStatus; | 54 | QString jackStatus; |
55 | QString ipaqChem; | 55 | QString ipaqChem; |