diff options
Diffstat (limited to 'tools/linguist/tutorial/tt2/arrowpad.cpp')
-rw-r--r-- | tools/linguist/tutorial/tt2/arrowpad.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/linguist/tutorial/tt2/arrowpad.cpp b/tools/linguist/tutorial/tt2/arrowpad.cpp new file mode 100644 index 000000000..8e23d931d --- /dev/null +++ b/tools/linguist/tutorial/tt2/arrowpad.cpp @@ -0,0 +1,31 @@ +/**************************************************************** +** +** Implementation of ArrowPad class, translation tutorial 2 +** +****************************************************************/ + +#include "arrowpad.h" + +#include <qpushbutton.h> + +ArrowPad::ArrowPad( TQWidget *parent, const char *name ) + : TQGrid( 3, Horizontal, parent, name ) +{ + setMargin( 10 ); + setSpacing( 10 ); + + skip(); + (void) new TQPushButton( tr("&Up"), this ); + skip(); + (void) new TQPushButton( tr("&Left"), this ); + skip(); + (void) new TQPushButton( tr("&Right"), this ); + skip(); + (void) new TQPushButton( tr("&Down"), this ); + skip(); +} + +void ArrowPad::skip() +{ + (void) new TQWidget( this ); +} |