From d6b26e81ce95daa964247c1726cef242f739a1ec Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sun, 21 Jul 2019 17:03:40 -0700 Subject: Throw a version check around HiDPI attribute...which was only introduced in Qt 5.6. --- quacker/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'quacker') diff --git a/quacker/main.cpp b/quacker/main.cpp index adec32b..57728af 100644 --- a/quacker/main.cpp +++ b/quacker/main.cpp @@ -61,7 +61,9 @@ private: int main(int argc, char **argv) { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif QuackerApplication a(argc, argv); TopLevel topLevel; a.setTopLevel(&topLevel); -- cgit v1.2.3