You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp

27 lines
619 B
C++

/****************************************************************
**
** Translation tutorial 3
**
****************************************************************/
#include "mainwindow.h"
#include <tqapplication.h>
#include <tqstring.h>
#include <tqtextcodec.h>
#include <tqtranslator.h>
int main( int argc, char **argv )
{
TQApplication app( argc, argv );
TQTranslator translator( 0 );
translator.load( TQString("tt3_") + TQTextCodec::locale(), "." );
app.installTranslator( &translator );
MainWindow *mw = new MainWindow;
app.setMainWidget( mw );
mw->show();
return app.exec();
}