summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt2/arrowpad.cpp
blob: 8e23d931dbc628c551a9d95b02a7724cd762288b (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( TQWidget *parent, const char *name )
    : TQGrid( 3, Horizontal, parent, name )
{
    setMargin( 10 );
    setSpacing( 10 );

    skip();
    (void) new TQPushButton( tr("&Up"), this );
    skip();
    (void) new TQPushButton( tr("&Left"), this );
    skip();
    (void) new TQPushButton( tr("&Right"), this );
    skip();
    (void) new TQPushButton( tr("&Down"), this );
    skip();
}

void ArrowPad::skip()
{
    (void) new TQWidget( this );
}