diff options
Diffstat (limited to 'tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp')
-rw-r--r-- | tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp new file mode 100644 index 0000000..27373be --- /dev/null +++ b/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp @@ -0,0 +1,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(); +} |