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