summaryrefslogtreecommitdiffhomepage
path: root/gui/init.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-08-01 14:56:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-08-01 14:56:32 +0200
commitf17f1a5910987654f64bdf2209ea2a8ad96f7e1e (patch)
treec797653b24d7d01d07d76226a626f143a9cc8408 /gui/init.cpp
parentb88b8404526a2c0fd2d0efcebf19f2087bcf3c05 (diff)
add workaround for obsolete qt versions
This should fix CI.
Diffstat (limited to 'gui/init.cpp')
-rw-r--r--gui/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index 9821404d..3aae5772 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -263,7 +263,9 @@ int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> co
#endif
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+#endif
QApplication app(argc, argv);