diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..80ea93b --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,24 @@ + +#include "aoapplication.h" + +#include "datatypes.h" +#include "networkmanager.h" +#include "lobby.h" +#include "courtroom.h" +#include <QPluginLoader> +#include <QDebug> +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(); +} |
