blob: a7aabce09153c177f9b6ef712323932c3cae02d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <QApplication>
#include <QLibraryInfo>
#include <QTranslator>
#include "horizonwizard.hh"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QString translatorFileName = QLatin1String("qt_");
translatorFileName += QLocale::system().name();
QTranslator *translator = new QTranslator(&app);
if(translator->load(translatorFileName,
QLibraryInfo::location(
QLibraryInfo::TranslationsPath
)))
{
app.installTranslator(translator);
}
HorizonWizard wizard;
wizard.show();
return app.exec();
}
|