Last change
on this file since 25 was 2, checked in by dmik, 20 years ago |
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
File size:
960 bytes
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: dclock.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | #ifndef DCLOCK_H
|
---|
12 | #define DCLOCK_H
|
---|
13 |
|
---|
14 | #include <qlcdnumber.h>
|
---|
15 |
|
---|
16 |
|
---|
17 | class DigitalClock : public QLCDNumber // digital clock widget
|
---|
18 | {
|
---|
19 | Q_OBJECT
|
---|
20 | public:
|
---|
21 | DigitalClock( QWidget *parent=0, const char *name=0 );
|
---|
22 |
|
---|
23 | protected: // event handlers
|
---|
24 | void timerEvent( QTimerEvent * );
|
---|
25 | void mousePressEvent( QMouseEvent * );
|
---|
26 |
|
---|
27 | private slots: // internal slots
|
---|
28 | void stopDate();
|
---|
29 | void showTime();
|
---|
30 |
|
---|
31 | private: // internal data
|
---|
32 | void showDate();
|
---|
33 |
|
---|
34 | bool showingColon;
|
---|
35 | int normalTimer;
|
---|
36 | int showDateTimer;
|
---|
37 | };
|
---|
38 |
|
---|
39 |
|
---|
40 | #endif // DCLOCK_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.