-rw-r--r-- | noncore/tools/clock/clock.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h index 1e5aa2c..fa12b61 100644 --- a/noncore/tools/clock/clock.h +++ b/noncore/tools/clock/clock.h | |||
@@ -19,12 +19,13 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef CLOCK_H | 20 | #ifndef CLOCK_H |
21 | #define CLOCK_H | 21 | #define CLOCK_H |
22 | 22 | ||
23 | #include <qdatetime.h> | 23 | #include <qdatetime.h> |
24 | #include <qvbox.h> | 24 | #include <qvbox.h> |
25 | #include <qpixmap.h> | ||
25 | 26 | ||
26 | class QLCDNumber; | 27 | class QLCDNumber; |
27 | class QLabel; | 28 | class QLabel; |
28 | class QTimer; | 29 | class QTimer; |
29 | class QRadioButton; | 30 | class QRadioButton; |
30 | class QPushButton; | 31 | class QPushButton; |
@@ -32,24 +33,24 @@ class QDateTime; | |||
32 | 33 | ||
33 | class AnalogClock : public QFrame | 34 | class AnalogClock : public QFrame |
34 | { | 35 | { |
35 | Q_OBJECT | 36 | Q_OBJECT |
36 | 37 | ||
37 | public: | 38 | public: |
38 | AnalogClock( QWidget * parent = 0, const char * name = 0 ) | 39 | AnalogClock( QWidget * parent = 0, const char * name = 0 ); |
39 | : QFrame( parent, name ), clear(true) {} | ||
40 | 40 | ||
41 | QSizePolicy sizePolicy() const; | 41 | QSizePolicy sizePolicy() const; |
42 | 42 | ||
43 | void display( const QTime& time ); | 43 | void display( const QTime& time ); |
44 | 44 | ||
45 | protected: | 45 | protected: |
46 | void drawContents( QPainter *p ); | 46 | void drawContents( QPainter *p ); |
47 | 47 | ||
48 | private: | 48 | private: |
49 | 49 | ||
50 | QPixmap bg; | ||
50 | QTime currTime; | 51 | QTime currTime; |
51 | QTime prevTime; | 52 | QTime prevTime; |
52 | bool clear; | 53 | bool clear; |
53 | 54 | ||
54 | QPoint rotate( QPoint center, QPoint p, int angle ); | 55 | QPoint rotate( QPoint center, QPoint p, int angle ); |
55 | void drawPointers ( QPainter *, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 = 0 ); | 56 | void drawPointers ( QPainter *, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 = 0 ); |