-rw-r--r-- | core/applets/batteryapplet/batterystatus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/batteryapplet/batterystatus.h b/core/applets/batteryapplet/batterystatus.h index 85b2c4d..0dc25af 100644 --- a/core/applets/batteryapplet/batterystatus.h +++ b/core/applets/batteryapplet/batterystatus.h | |||
@@ -17,24 +17,25 @@ | |||
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 <qwidget.h> | 23 | #include <qwidget.h> |
24 | 24 | ||
25 | class PowerStatus; | 25 | class PowerStatus; |
26 | 26 | ||
27 | class BatteryStatus : public QWidget | 27 | class BatteryStatus : public QWidget |
28 | { | 28 | { |
29 | Q_OBJECT | ||
29 | public: | 30 | public: |
30 | BatteryStatus( const PowerStatus *s, QWidget *parent=0 ); | 31 | BatteryStatus( const PowerStatus *s, QWidget *parent=0 ); |
31 | ~BatteryStatus(); | 32 | ~BatteryStatus(); |
32 | 33 | ||
33 | void updatePercent( int ); | 34 | void updatePercent( int ); |
34 | 35 | ||
35 | protected: | 36 | protected: |
36 | 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 ); |
37 | void paintEvent( QPaintEvent *pe ); | 38 | void paintEvent( QPaintEvent *pe ); |
38 | 39 | ||
39 | private: | 40 | private: |
40 | const PowerStatus *ps; | 41 | const PowerStatus *ps; |