summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp
blob: 2eef0cbc35317ebf9ff3afe54fd1bfef28b7a25a (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 <tqlabel.h>
#include <tqradiobutton.h>
#include <tqhbuttongroup.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->tqsetAlignment( 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();
}