From dda8474928bd7276e1fad8fb7a601e7c83ff2bc2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 15:17:53 -0500 Subject: Added TQt4 HEAD --- .../qt4/tools/linguist/tutorial/tt3/printpanel.cpp | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp (limited to 'tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp') diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp new file mode 100644 index 0000000..85c507b --- /dev/null +++ b/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp @@ -0,0 +1,37 @@ +/**************************************************************** +** +** Implementation of PrintPanel class, translation tutorial 3 +** +****************************************************************/ + +#include "printpanel.h" + +#include +#include +#include + +PrintPanel::PrintPanel( TQWidget *tqparent, const char *name ) + : TQVBox( tqparent, name ) +{ + setMargin( 10 ); + setSpacing( 10 ); + +/* + TQLabel *lab = new TQLabel( tr("TROLL PRINT"), 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(); +} -- cgit v1.2.1