summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-07-21 17:03:40 -0700
committerJohn Fultz <jfultz@wolfram.com>2019-07-21 17:03:40 -0700
commitd6b26e81ce95daa964247c1726cef242f739a1ec (patch)
tree0c7f5c83b57d20e9903e7ab356c345f57a67a45d
parent5a746a6b1066a3b59dd75f221ed08a42876f3e00 (diff)
Throw a version check around HiDPI attribute...which was only introduced in Qt 5.6.
-rw-r--r--quacker/main.cpp2
1 files changed, 2 insertions, 0 deletions
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);