You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
572 B
26 lines
572 B
/****************************************************************
|
|
**
|
|
** 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();
|
|
}
|