#include "stapeldisplay.h" #include #include #include #include #include #include StapelGroupBox::StapelGroupBox( QWidget* parent, const char* name ) : QGroupBox( parent, name ) { this->setAlignment( int( QGroupBox::AlignTop ) ); stapelMin1PushButton = new QPushButton( this, "stapelMin1PushButton" ); stapelMin1PushButton->setGeometry( QRect( 11, 21, 51, 27 ) ); stapelMin2PushButton = new QPushButton( this, "stapelMin2PushButton" ); stapelMin2PushButton->setGeometry( QRect( 68, 21, 51, 27 ) ); stapelProgressBar = new QProgressBar( this, "stapelProgressBar" ); stapelProgressBar->setGeometry( QRect( 125, 23, 161, 22 ) ); stapelLCDNumber = new QLCDNumber( this, "stapelLCDNumber" ); stapelLCDNumber->setGeometry( QRect( 292, 21, 37, 27 ) ); stapelLCDNumber->setNumDigits( 2 ); stapelLCDNumber->setProperty( "intValue", 88 ); languageChange(); // tab order setTabOrder( stapelMin1PushButton, stapelMin2PushButton ); } StapelGroupBox::~StapelGroupBox() { } void StapelGroupBox::setXY( int X, int Y ) { this->setGeometry( X, Y, 341, 60 ); } void StapelGroupBox::languageChange() { this->setTitle( tr( "Stapel xx" ) ); stapelMin1PushButton->setText( tr( "-1" ) ); stapelMin2PushButton->setText( tr( "-2" ) ); }