summaryrefslogtreecommitdiff
path: root/noncore/tools/clock/analogclock.h
Unidiff
Diffstat (limited to 'noncore/tools/clock/analogclock.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/analogclock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/tools/clock/analogclock.h b/noncore/tools/clock/analogclock.h
index 3aa035e..2287888 100644
--- a/noncore/tools/clock/analogclock.h
+++ b/noncore/tools/clock/analogclock.h
@@ -19,31 +19,32 @@
19**********************************************************************/ 19**********************************************************************/
20#ifndef ANALOGCLOCK_H 20#ifndef ANALOGCLOCK_H
21#define ANALOGCLOCK_H 21#define ANALOGCLOCK_H
22 22
23#include <qdatetime.h> 23#include <qdatetime.h>
24#include <qframe.h> 24#include <qframe.h>
25 25
26class AnalogClock : public QFrame 26class AnalogClock : public QFrame
27{ 27{
28 Q_OBJECT 28 Q_OBJECT
29public: 29public:
30 AnalogClock( QWidget *parent=0, const char *name=0 ); 30 AnalogClock( QWidget *parent=0, const char *name=0 );
31 ~AnalogClock();
31 32
32 QSizePolicy sizePolicy() const; 33 QSizePolicy sizePolicy() const;
33 34
34 void display( const QTime& time ); 35 void display( const QTime& time );
35 36
36protected: 37protected:
37 void drawContents( QPainter *p ); 38 void drawContents( QPainter *p );
38 void drawHand( QPainter *p, QPoint, QPoint ); 39 void drawHand( QPainter *p, QPoint, QPoint );
39 40
40private: 41private:
41 QPoint rotate( QPoint center, QPoint p, int angle ); 42 QPoint rotate( QPoint center, QPoint p, int angle );
42 43
43 QTime currTime; 44 QTime currTime;
44 QTime prevTime; 45 QTime prevTime;
45 bool clear; 46 QPixmap *_pixmap;
46}; 47};
47 48
48#endif 49#endif
49 50