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
576 B
26 lines
576 B
/****************************************************************
|
|
**
|
|
** 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();
|
|
}
|