-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
68 lines (55 loc) · 2.66 KB
/
main.cpp
File metadata and controls
68 lines (55 loc) · 2.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/****************************************************************************
* Copyright (C) 2018 by Sebastian Ziganki *
* *
* This file is part of Lpz3ncLittleHelper. *
* *
* Lpz3ncLittleHelper is free software: you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License. *
* *
* Lpz3ncLittleHelper is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with Box. If not, see http://www.gnu.org/licenses . *
****************************************************************************/
/**
* /file main.cpp
* /author Hackspider
* /brief Source file of the main application entry
*/
/* Necessary dependencies to Qt framework */
#include <QApplication>
/* Necessary internal dependencies */
#include "DarkStyle.h"
#include "framelesswindow.h"
#include "splashscreen.h"
#include "mainwindowcontent.h"
/**
* /brief Application main entry
*/
int main(int argc, char *argv[])
{
/* Create a new QApplication */
QApplication application(argc, argv);
/* Set the dark style for the whole application */
application.setStyle(new DarkStyle);
/* Before the application is started show a splash screen */
SplashScreen splashScreen;
splashScreen.exec();
/* Create a frameless window of the dark style */
FramelessWindow mainWindow;
/* Set the window title */
mainWindow.setWindowTitle("Lpz3nc's Little Helper");
/* Create the content widget (main logic happens here) */
MainWindowContent* mainWindowContent = new MainWindowContent;
/* Set the created content widget as content of the frameless window */
mainWindow.setContent(mainWindowContent);
/* Show the main window */
mainWindow.show();
/* Start the application */
return application.exec();
}