summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-08-29 14:46:42 (UTC)
committer cniehaus <cniehaus>2002-08-29 14:46:42 (UTC)
commit4212b92b6486f2c7216c234528731025fac44e55 (patch) (unidiff)
treea2a9a0d2b5b15a6fd3519a5ba39abeb54d93e454
parentcb3d71838279c09c39ac6568a3634d40c3398bb4 (diff)
downloadopie-4212b92b6486f2c7216c234528731025fac44e55.zip
opie-4212b92b6486f2c7216c234528731025fac44e55.tar.gz
opie-4212b92b6486f2c7216c234528731025fac44e55.tar.bz2
this adds 2 Q_OBJECTS-lines
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/batterystatus.h1
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
25class PowerStatus; 25class PowerStatus;
26 26
27class BatteryStatus : public QWidget 27class BatteryStatus : public QWidget
28{ 28{
29 Q_OBJECT
29public: 30public:
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
35protected: 36protected:
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
39private: 40private:
40 const PowerStatus *ps; 41 const PowerStatus *ps;
41 int percent; 42 int percent;
42}; 43};
43 44
44#endif 45#endif