forked from DOMjudge/DOMjura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
49 lines (38 loc) · 1.2 KB
/
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
40
41
42
43
44
45
46
47
48
49
/** \file main.cpp
\brief The main file for the DOMjura application
*/
/** \namespace DJ
* \brief The namespace the whole DOMjura application is in.
*/
/** \namespace DJ::View
* \brief The namespace for all the view related classes.
*/
/** \namespace DJ::View::Ui
* \brief The namespace for all Qt Designer generated widget headers.
*/
/** \namespace DJ::Model
* \brief The namespace for all the model related classes.
*/
/** \namespace DJ::Controller
* \brief The namespace where all controllers reside in.
*/
#include <QApplication>
#include <QPixmapCache>
#include "maincontroller.h"
/** Sets the pixmap cache to 1 GB and then starts the application.
* \param argc The number of arguments.
* \param argv The arguments.
* \return 0 on success, another value otherwise.
*/
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QApplication::setOrganizationName("ACM INSAT TUNIS STUDENT BRANCH");
QApplication::setOrganizationDomain("https://github.com/acm-insat");
QApplication::setApplicationName("DOMJura");
QApplication::setApplicationVersion("2.0");
QPixmapCache::setCacheLimit(1024 * 1024);
DJ::Controller::MainController mc;
mc.showMainWindow();
return a.exec();
}