forked from MarkusBansky/socialTree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
34 lines (29 loc) · 782 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
#include <QApplication>
#include <QLabel>
#include <QTimer>
#include <QObject>
#ifndef QT_NO_OPENGL
#include <opengl/mainwidget.h>
#include "request/request.h"
#include "request/requestprovider.h"
#include "core/corehandler.h"
#include "opengl/AnimationManager.h"
#endif
#include <iostream>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setApplicationName("Social Tree");
app.setApplicationVersion("0.2");
#ifndef QT_NO_OPENGL
widget = new MainWidget();
widget->show();
coreHandler* handler = new coreHandler();
RequestProvider* reqProvider = new RequestProvider(handler);
animationManager = new AnimationManager(handler);
#else
QLabel note("OpenGL Support required");
note.show();
#endif
return app.exec();
}