summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt2/arrowpad.cpp
blob: c25d3817f7fda00c4d2cb47c21e1e986ca8a90eb (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 *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 );
}