summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2018-06-20 11:24:23 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2018-06-20 11:24:23 +0200
commit79c0ed3305d13a507bcc76548c623a47449c1a3a (patch)
tree807541e1f52ba991af917bd72782732c9a2de571 /main
parent24f7cb05516226a86b11c7b19ce3660013d2121f (diff)
Backward compatibility with Qt 5.2 should solve #371
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 41fcd955..bf9e0db6 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -18,7 +18,7 @@
*
* \subsection dependencies Dependencies
*
- * - QtPass requires Qt 4.8 or later, preferably Qt5.5 or later.
+ * - QtPass requires Qt 5.2 or later.
* - The Linguist package is required to compile the translations.
* - For use of the fallback icons the SVG library is required.
*
@@ -39,7 +39,9 @@
* @return
*/
int main(int argc, char *argv[]) {
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
QString text = "";
for (int i = 1; i < argc; ++i) {
if (i > 1)