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.
27 lines
611 B
C++
27 lines
611 B
C++
14 years ago
|
/****************************************************************
|
||
|
**
|
||
|
** Translation tutorial 3
|
||
|
**
|
||
|
****************************************************************/
|
||
|
|
||
|
#include "mainwindow.h"
|
||
|
|
||
|
#include <qapplication.h>
|
||
|
#include <qstring.h>
|
||
|
#include <qtextcodec.h>
|
||
|
#include <qtranslator.h>
|
||
|
|
||
|
int main( int argc, char **argv )
|
||
|
{
|
||
|
QApplication app( argc, argv );
|
||
|
|
||
|
QTranslator translator( 0 );
|
||
|
translator.load( QString("tt3_") + QTextCodec::locale(), "." );
|
||
|
app.installTranslator( &translator );
|
||
|
|
||
|
MainWindow *mw = new MainWindow;
|
||
|
app.setMainWidget( mw );
|
||
|
mw->show();
|
||
|
return app.exec();
|
||
|
}
|