Line | |
---|
1 | /****************************************************************
|
---|
2 | **
|
---|
3 | ** Implementation of PrintPanel class, translation tutorial 3
|
---|
4 | **
|
---|
5 | ****************************************************************/
|
---|
6 |
|
---|
7 | #include "printpanel.h"
|
---|
8 |
|
---|
9 | #include <qlabel.h>
|
---|
10 | #include <qradiobutton.h>
|
---|
11 | #include <qhbuttongroup.h>
|
---|
12 |
|
---|
13 | PrintPanel::PrintPanel( QWidget *parent, const char *name )
|
---|
14 | : QVBox( parent, name )
|
---|
15 | {
|
---|
16 | setMargin( 10 );
|
---|
17 | setSpacing( 10 );
|
---|
18 |
|
---|
19 | /*
|
---|
20 | QLabel *lab = new QLabel( tr("<b>TROLL PRINT</b>"), this );
|
---|
21 | lab->setAlignment( AlignCenter );
|
---|
22 | */
|
---|
23 |
|
---|
24 | QRadioButton *but;
|
---|
25 |
|
---|
26 | QHButtonGroup *twoSided = new QHButtonGroup( this );
|
---|
27 | twoSided->setTitle( tr("2-sided") );
|
---|
28 | but = new QRadioButton( tr("Enabled"), twoSided );
|
---|
29 | but = new QRadioButton( tr("Disabled"), twoSided );
|
---|
30 | but->toggle();
|
---|
31 |
|
---|
32 | QHButtonGroup *colors = new QHButtonGroup( this );
|
---|
33 | colors->setTitle( tr("Colors") );
|
---|
34 | but = new QRadioButton( tr("Enabled"), colors );
|
---|
35 | but = new QRadioButton( tr("Disabled"), colors );
|
---|
36 | but->toggle();
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.