Last change
on this file 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:
869 bytes
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: forever.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Definition of something or other
|
---|
5 | **
|
---|
6 | ** Created : 979899
|
---|
7 | **
|
---|
8 | ** Copyright (C) 1997 by Trolltech AS. All rights reserved.
|
---|
9 | **
|
---|
10 | ** This file is part of an example program for Qt. This example
|
---|
11 | ** program may be used, distributed and modified without limitation.
|
---|
12 | **
|
---|
13 | *****************************************************************************/
|
---|
14 |
|
---|
15 | #ifndef FOREVER_H
|
---|
16 | #define FOREVER_H
|
---|
17 |
|
---|
18 | #include <qwidget.h>
|
---|
19 |
|
---|
20 |
|
---|
21 | const int numColors = 120;
|
---|
22 |
|
---|
23 |
|
---|
24 | class Forever : public QWidget
|
---|
25 | {
|
---|
26 | Q_OBJECT
|
---|
27 | public:
|
---|
28 | Forever( QWidget *parent=0, const char *name=0 );
|
---|
29 | protected:
|
---|
30 | void paintEvent( QPaintEvent * );
|
---|
31 | void timerEvent( QTimerEvent * );
|
---|
32 | private slots:
|
---|
33 | void updateCaption();
|
---|
34 | private:
|
---|
35 | int rectangles;
|
---|
36 | QColor colors[numColors];
|
---|
37 | };
|
---|
38 |
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.