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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/tools/clock/analogclock.h b/noncore/tools/clock/analogclock.h
index 3aa035e..5f30d68 100644
--- a/noncore/tools/clock/analogclock.h
+++ b/noncore/tools/clock/analogclock.h
@@ -15,35 +15,36 @@
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 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 31
32 QSizePolicy sizePolicy() const; 32 QSizePolicy sizePolicy() const;
33 33
34 void display( const QTime& time ); 34 void display( const QTime& time );
35 35
36protected: 36protected:
37 void drawContents( QPainter *p ); 37 void drawContents( QPainter *p );
38 void drawHand( QPainter *p, QPoint, QPoint ); 38 void drawHand( QPainter *p, QPoint, QPoint );
39 void drawPointers ( QPainter *p, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 = 0);
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 bool clear;
46}; 47};
47 48
48#endif 49#endif
49 50