Compatibility with older Qt versions

This commit is contained in:
oldmud0 2017-11-17 10:45:38 -06:00
parent 32df766e61
commit 0770c8f5bf
2 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,8 @@ unix:LIBS += -L$$PWD -lbass
win32:LIBS += "$$PWD/bass.dll"
android:LIBS += -L$$PWD\android\libs\armeabi-v7a\ -lbass
CONFIG += c++11
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
RESOURCES += \

View File

@ -10,7 +10,12 @@
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();