summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt1/main.cpp
blob: 2cee6e11e8e0219a72ba8a7bee384786412e906d (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 <qapplication.h>
#include <qpushbutton.h>
#include <qtranslator.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();
}