blob: 722320d7818d50aa955885cf142afb81489aa062 (
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 <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 );
}
|