From 9c34be2427a483d3bf5f115eac28dec2716461f2 Mon Sep 17 00:00:00 2001 From: DaMichel Date: Sun, 7 Aug 2016 09:59:32 +0200 Subject: Fix trivial build errors on linux. Also support Qt 5.5. --- gui/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') 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); -- cgit v1.2.3