forked from mrkite/TerraFirma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
35 lines (27 loc) · 774 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
32
33
34
35
/**
* @Copyright 2015 seancode
*
* Main application
*/
#include <QApplication>
#include <QTranslator>
#include <QSurfaceFormat>
#include "./mainwindow.h"
int main(int argc, char *argv[]) {
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
format.setSamples(4); // 4xaa
format.setVersion(3, 3);
format.setProfile(QSurfaceFormat::CoreProfile);
QSurfaceFormat::setDefaultFormat(format);
QApplication app(argc, argv);
QString locale = QLocale::system().name();
QTranslator translator;
translator.load(QString("terrafirma_")+locale);
app.installTranslator(&translator);
app.setApplicationName("Terrafirma");
app.setApplicationVersion("3.0.18");
app.setOrganizationName("seancode");
MainWindow w;
w.show();
return app.exec();
}