Line | |
---|
1 | /****************************************************************
|
---|
2 | **
|
---|
3 | ** Implementation of ArrowPad class, translation tutorial 2
|
---|
4 | **
|
---|
5 | ****************************************************************/
|
---|
6 |
|
---|
7 | #include "arrowpad.h"
|
---|
8 |
|
---|
9 | #include <qpushbutton.h>
|
---|
10 |
|
---|
11 | ArrowPad::ArrowPad( QWidget *parent, const char *name )
|
---|
12 | : QGrid( 3, Horizontal, parent, name )
|
---|
13 | {
|
---|
14 | setMargin( 10 );
|
---|
15 | setSpacing( 10 );
|
---|
16 |
|
---|
17 | skip();
|
---|
18 | (void) new QPushButton( tr("&Up"), this );
|
---|
19 | skip();
|
---|
20 | (void) new QPushButton( tr("&Left"), this );
|
---|
21 | skip();
|
---|
22 | (void) new QPushButton( tr("&Right"), this );
|
---|
23 | skip();
|
---|
24 | (void) new QPushButton( tr("&Down"), this );
|
---|
25 | skip();
|
---|
26 | }
|
---|
27 |
|
---|
28 | void ArrowPad::skip()
|
---|
29 | {
|
---|
30 | (void) new QWidget( this );
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.