author | cniehaus <cniehaus> | 2002-08-29 14:46:42 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-08-29 14:46:42 (UTC) |
commit | 4212b92b6486f2c7216c234528731025fac44e55 (patch) (unidiff) | |
tree | a2a9a0d2b5b15a6fd3519a5ba39abeb54d93e454 | |
parent | cb3d71838279c09c39ac6568a3634d40c3398bb4 (diff) | |
download | opie-4212b92b6486f2c7216c234528731025fac44e55.zip opie-4212b92b6486f2c7216c234528731025fac44e55.tar.gz opie-4212b92b6486f2c7216c234528731025fac44e55.tar.bz2 |
this adds 2 Q_OBJECTS-lines
-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 | |||
@@ -13,32 +13,33 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
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; |
41 | int percent; | 42 | int percent; |
42 | }; | 43 | }; |
43 | 44 | ||
44 | #endif | 45 | #endif |