summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt2/arrowpad.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:24:15 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:24:15 -0500
commitbd0f3345a938b35ce6a12f6150373b0955b8dd12 (patch)
tree7a520322212d48ebcb9fbe1087e7fca28b76185c /tools/linguist/tutorial/tt2/arrowpad.cpp
downloadqt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.tar.gz
qt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.zip
Add Qt3 development HEAD version
Diffstat (limited to 'tools/linguist/tutorial/tt2/arrowpad.cpp')
-rw-r--r--tools/linguist/tutorial/tt2/arrowpad.cpp31
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 0000000..3c0da64
--- /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( QWidget *parent, const char *name )
+ : QGrid( 3, Horizontal, parent, name )
+{
+ setMargin( 10 );
+ setSpacing( 10 );
+
+ skip();
+ (void) new QPushButton( tr("&Up"), this );
+ skip();
+ (void) new QPushButton( tr("&Left"), this );
+ skip();
+ (void) new QPushButton( tr("&Right"), this );
+ skip();
+ (void) new QPushButton( tr("&Down"), this );
+ skip();
+}
+
+void ArrowPad::skip()
+{
+ (void) new QWidget( this );
+}