[2] | 1 | #include "stapeldisplay.h"
|
---|
| 2 |
|
---|
| 3 | #include <qvariant.h>
|
---|
| 4 | #include <qgroupbox.h>
|
---|
| 5 | #include <qpushbutton.h>
|
---|
| 6 | #include <qprogressbar.h>
|
---|
| 7 | #include <qlcdnumber.h>
|
---|
| 8 | #include <qlayout.h>
|
---|
| 9 | StapelGroupBox::StapelGroupBox( QWidget* parent, const char* name )
|
---|
| 10 | : QGroupBox( parent, name )
|
---|
| 11 | {
|
---|
| 12 | this->setAlignment( int( QGroupBox::AlignTop ) );
|
---|
| 13 |
|
---|
| 14 | stapelMin1PushButton = new QPushButton( this, "stapelMin1PushButton" );
|
---|
| 15 | stapelMin1PushButton->setGeometry( QRect( 11, 21, 51, 27 ) );
|
---|
| 16 |
|
---|
| 17 | stapelMin2PushButton = new QPushButton( this, "stapelMin2PushButton" );
|
---|
| 18 | stapelMin2PushButton->setGeometry( QRect( 68, 21, 51, 27 ) );
|
---|
| 19 |
|
---|
| 20 | stapelProgressBar = new QProgressBar( this, "stapelProgressBar" );
|
---|
| 21 | stapelProgressBar->setGeometry( QRect( 125, 23, 161, 22 ) );
|
---|
| 22 |
|
---|
| 23 | stapelLCDNumber = new QLCDNumber( this, "stapelLCDNumber" );
|
---|
| 24 | stapelLCDNumber->setGeometry( QRect( 292, 21, 37, 27 ) );
|
---|
| 25 | stapelLCDNumber->setNumDigits( 2 );
|
---|
| 26 | stapelLCDNumber->setProperty( "intValue", 88 );
|
---|
| 27 | languageChange();
|
---|
| 28 |
|
---|
| 29 | // tab order
|
---|
| 30 | setTabOrder( stapelMin1PushButton, stapelMin2PushButton );
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | StapelGroupBox::~StapelGroupBox()
|
---|
| 35 | {
|
---|
| 36 |
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 | void StapelGroupBox::setXY( int X, int Y )
|
---|
| 41 | {
|
---|
| 42 | this->setGeometry( X, Y, 341, 60 );
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | void StapelGroupBox::languageChange()
|
---|
| 48 | {
|
---|
| 49 | this->setTitle( tr( "Stapel xx" ) );
|
---|
| 50 | stapelMin1PushButton->setText( tr( "-1" ) );
|
---|
| 51 | stapelMin2PushButton->setText( tr( "-2" ) );
|
---|
| 52 | }
|
---|
| 53 |
|
---|