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