aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2018-12-26 16:43:08 +0100
committerDavid Skoland <davidskoland@gmail.com>2018-12-26 16:43:08 +0100
commit00cfd2750d39795e4c205aee2a33b92b1da2524d (patch)
tree839c1129418ca8fefe41e6814917f9dabb6efa4b /src/main.cpp
parent6f1bce5882676ea7affe717a2f5a00b8c3b7fe12 (diff)
moved headers into include and cpp files into src + logo into resource
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 00000000..cf51b0af
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,25 @@
+
+#include "aoapplication.h"
+
+#include "datatypes.h"
+#include "networkmanager.h"
+#include "lobby.h"
+#include "courtroom.h"
+#include <QPluginLoader>
+#include <QDebug>
+Q_IMPORT_PLUGIN(ApngImagePlugin);
+int main(int argc, char *argv[])
+{
+#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0)
+ // High-DPI support is for Qt version >=5.6.
+ // However, many Linux distros still haven't brought their stable/LTS
+ // packages up to Qt 5.6, so this is conditional.
+ AOApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+
+ AOApplication main_app(argc, argv);
+ main_app.construct_lobby();
+ main_app.net_manager->connect_to_master();
+ main_app.w_lobby->show();
+ return main_app.exec();
+}