diff options
Diffstat (limited to 'tools/linguist/tutorial/tt3/printpanel.cpp')
-rw-r--r-- | tools/linguist/tutorial/tt3/printpanel.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/linguist/tutorial/tt3/printpanel.cpp b/tools/linguist/tutorial/tt3/printpanel.cpp new file mode 100644 index 0000000..5cbd468 --- /dev/null +++ b/tools/linguist/tutorial/tt3/printpanel.cpp @@ -0,0 +1,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(); +} |