-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (31 loc) · 1.17 KB
/
Copy pathmain.cpp
File metadata and controls
43 lines (31 loc) · 1.17 KB
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
36
37
38
39
40
41
42
43
// Copyright 2016 Manfred Dings
#include <QSplashScreen>
#include <QTranslator>
#include <QLibraryInfo>
#include <QGuiApplication>
#include "mapmainwindow.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(mapressources);
// Set Organization etc. for the "ini"-file
QCoreApplication::setOrganizationName("MAP");
QCoreApplication::setOrganizationDomain("musikundtheorie.de");
QCoreApplication::setApplicationName("MAP5");
QApplication a(argc, argv);
QPixmap Pixmap(":/splash.png");
QSplashScreen splash(Pixmap);
splash.show();
Qt::Alignment al = Qt::AlignHCenter | Qt::AlignTop;
splash.showMessage(CVERSIONSTEXT, al, (0xee7000));
// Übersetzung der Standarddialog, Buttons etc.
// QTranslator qtTranslator;
// qtTranslator.load("qt_" + QLocale::system().name(),
// QLibraryInfo::location(QLibraryInfo::TranslationsPath));
// a.installTranslator(&qtTranslator);
// wait for WaitN Millisecs to show the splash-screen
MapMainWindow w;
QGuiApplication::setWindowIcon(QIcon(":MainIcon2.icns"));
splash.finish(&w);
w.show();
return a.exec();
}