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