blob: c377efc2699c8960a4eb00a18dc98a093768d71c (
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( TQWidget *parent, const char *name )
: TQVBox( parent, name )
{
setMargin( 10 );
setSpacing( 10 );
/*
TQLabel *lab = new TQLabel( tr("<b>TROLL PRINT</b>"), this );
lab->setAlignment( AlignCenter );
*/
TQRadioButton *but;
TQHButtonGroup *twoSided = new TQHButtonGroup( this );
twoSided->setTitle( tr("2-sided") );
but = new TQRadioButton( tr("Enabled"), twoSided );
but = new TQRadioButton( tr("Disabled"), twoSided );
but->toggle();
TQHButtonGroup *colors = new TQHButtonGroup( this );
colors->setTitle( tr("Colors") );
but = new TQRadioButton( tr("Enabled"), colors );
but = new TQRadioButton( tr("Disabled"), colors );
but->toggle();
}
|