summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp
blob: 27373bec295f0148c0d9dccd103ac67d9a6fd6bd (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 <tqapplication.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();
}