-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
31 lines (25 loc) · 822 Bytes
/
main.cpp
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
27
28
29
30
31
#include "tdtumsa.h"
#include <QApplication>
#include <QTranslator>
//#include <QLocale>
//#include <QLibraryInfo>
int main(int argc, char *argv[])
{
//Q_INIT_RESOURCE(tdtumsa);
QApplication app(argc, argv);
#ifndef QT_NO_TRANSLATION
QString translatorFileName = QLatin1String("qt_");
translatorFileName += QLocale::system().name();
QTranslator *translator = new QTranslator(&app);
if (translator->load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
app.installTranslator(translator);
#endif
app.setWindowIcon(QIcon(":/images/logo.png"));
Tdtumsa wizard;
wizard.show();
QFont font("Arial");
font.setStyleHint(QFont::Monospace);
font.setPointSize(11);
wizard.setFont(font);
return app.exec();
}