-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (28 loc) · 778 Bytes
/
Copy pathmain.cpp
File metadata and controls
39 lines (28 loc) · 778 Bytes
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 "gaia.h"
#include <QApplication>
#include <QTimer>
#include <QSplashScreen>
/*
I've got the worst idea to name every class
after some amazing game I played and gave a
9/10.
Why?
Great question.
Good luck future me, you'll need it.
*/
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setApplicationName("PiBoard: An MS: Paint Knockoff");
a.setApplicationVersion("0.0.1");
QIcon icon(":/assets/icon-48.png");
a.setWindowIcon(icon);
QSplashScreen *splash =new QSplashScreen;
splash->setPixmap(QPixmap(":/assets/splash.png"));
splash->show();
Gaia *w = new Gaia;
QTimer::singleShot(2500,splash,SLOT(close()));
QTimer::singleShot(2500,w,SLOT(show()));
w->setWindowIcon(icon);
return a.exec();
}