blob: 3c0da64317096d31e6b661c49a708316394e3d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 );
}
|