diff options
author | John Fultz <jfultz@wolfram.com> | 2019-07-21 17:03:40 -0700 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-07-21 17:03:40 -0700 |
commit | d6b26e81ce95daa964247c1726cef242f739a1ec (patch) | |
tree | 0c7f5c83b57d20e9903e7ab356c345f57a67a45d /quacker/main.cpp | |
parent | 5a746a6b1066a3b59dd75f221ed08a42876f3e00 (diff) |
Throw a version check around HiDPI attribute...which was only introduced in Qt 5.6.
Diffstat (limited to 'quacker/main.cpp')
-rw-r--r-- | quacker/main.cpp | 2 |
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); |