|
Last change
on this file since 119 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:
613 bytes
|
| Line | |
|---|
| 1 | /****************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Definition of LCDRange class, Qt tutorial 8
|
|---|
| 4 | **
|
|---|
| 5 | ****************************************************************/
|
|---|
| 6 |
|
|---|
| 7 | #ifndef LCDRANGE_H
|
|---|
| 8 | #define LCDRANGE_H
|
|---|
| 9 |
|
|---|
| 10 | #include <qvbox.h>
|
|---|
| 11 |
|
|---|
| 12 | class QSlider;
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | class LCDRange : public QVBox
|
|---|
| 16 | {
|
|---|
| 17 | Q_OBJECT
|
|---|
| 18 | public:
|
|---|
| 19 | LCDRange( QWidget *parent=0, const char *name=0 );
|
|---|
| 20 |
|
|---|
| 21 | int value() const;
|
|---|
| 22 |
|
|---|
| 23 | public slots:
|
|---|
| 24 | void setValue( int );
|
|---|
| 25 | void setRange( int minVal, int maxVal );
|
|---|
| 26 |
|
|---|
| 27 | signals:
|
|---|
| 28 | void valueChanged( int );
|
|---|
| 29 |
|
|---|
| 30 | private:
|
|---|
| 31 | QSlider *slider;
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | #endif // LCDRANGE_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.