-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 | |||
@@ -21,31 +21,31 @@ | |||
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; |