summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt1/main.cpp
blob: 977d18e8809ee43fa0fb171bdb952f8e7aaad9a6 (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
/****************************************************************
**
** Translation tutorial 1
**
****************************************************************/

#include <ntqapplication.h>
#include <tqpushbutton.h>
#include <tqtranslator.h>


int main( int argc, char **argv )
{
    TQApplication app( argc, argv );

    TQTranslator translator( 0 );
    translator.load( "tt1_la", "." );
    app.installTranslator( &translator );

    TQPushButton hello( TQPushButton::tr("Hello world!"), 0 );

    app.setMainWidget( &hello );
    hello.show();
    return app.exec();
}