aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
blob: 5696e2e0ecc5876cbe612e432660249ac89d2956 (plain)
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
#include "aoapplication.h"

#include "datatypes.h"
#include "networkmanager.h"
#include "lobby.h"
#include "courtroom.h"

#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();
}