source: liacs/pm/backup/qt-nim/stapeldisplay.cpp@ 4

Last change on this file since 4 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 1.4 KB
Line 
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>
9StapelGroupBox::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
34StapelGroupBox::~StapelGroupBox()
35{
36
37}
38
39
40void StapelGroupBox::setXY( int X, int Y )
41{
42 this->setGeometry( X, Y, 341, 60 );
43}
44
45
46
47void StapelGroupBox::languageChange()
48{
49 this->setTitle( tr( "Stapel xx" ) );
50 stapelMin1PushButton->setText( tr( "-1" ) );
51 stapelMin2PushButton->setText( tr( "-2" ) );
52}
53
Note: See TracBrowser for help on using the repository browser.