diff options
author | DaMichel <mw.pub@welter-4d.de> | 2016-08-07 09:59:32 +0200 |
---|---|---|
committer | DaMichel <mw.pub@welter-4d.de> | 2016-08-07 09:59:32 +0200 |
commit | 9c34be2427a483d3bf5f115eac28dec2716461f2 (patch) | |
tree | 59310c4477840345b53c671b5b5194f7f8c131bb /gui | |
parent | 16d7bb4d8c051d3196456ec89550c637e4d84677 (diff) |
Fix trivial build errors on linux. Also support Qt 5.5.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index e708dc9d..c07a65ac 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -116,7 +116,9 @@ int main(int argc, char** argv) QCoreApplication::addLibraryPath("."); #endif +#if QT_VERSION >= 0x050600 // flag introduced in QT 5.6. It is non-essential so might as well allow compilation on older systems. QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); |