-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
41 lines (27 loc) · 926 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
36
37
38
39
#include "MainWindow.h"
#include <QSplashScreen>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
QRect screenrect = a.primaryScreen()->geometry();
w.move(screenrect.left(), screenrect.top());
w.resize(screenrect.width(), screenrect.height());
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/images/intro.png"));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(QObject::tr("Setting up the main window..."),
topRight, Qt::white);
splash->showMessage(QObject::tr("Loading modules..."),
topRight, Qt::white);
//loadModules();
splash->showMessage(QObject::tr("Establishing connections..."),
topRight, Qt::white);
//establishConnections();
w.showMaximized();
splash->finish(&w);
delete splash;
return a.exec();
}