summaryrefslogtreecommitdiff
path: root/user/okular/0001-Ensure-compatibility-with-Qt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/okular/0001-Ensure-compatibility-with-Qt.patch')
-rw-r--r--user/okular/0001-Ensure-compatibility-with-Qt.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/okular/0001-Ensure-compatibility-with-Qt.patch b/user/okular/0001-Ensure-compatibility-with-Qt.patch
new file mode 100644
index 000000000..dfd2daa75
--- /dev/null
+++ b/user/okular/0001-Ensure-compatibility-with-Qt.patch
@@ -0,0 +1,36 @@
+From 00f76c2df98c44722b05f7c350cf6b3241c2128f Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Thu, 18 Apr 2019 18:17:32 -0500
+Subject: [PATCH] Ensure compatibility with Qt <5.10
+
+Qt::AA_CompressTabletEvents was added in Qt 5.10. Use preprocessor check
+to avoid build failures on 5.9 LTS or 5.8 (the minimum version).
+---
+ shell/main.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/shell/main.cpp b/shell/main.cpp
+index 17b58c610..dbdebf1a4 100644
+--- a/shell/main.cpp
++++ b/shell/main.cpp
+@@ -19,6 +19,7 @@
+ #include <QTextStream>
+ #include <kwindowsystem.h>
+ #include <QApplication>
++#include <QtGlobal>
+ #include <KAboutData>
+ #include <KCrash>
+ #include <KMessageBox>
+@@ -31,7 +32,9 @@
+ int main(int argc, char** argv)
+ {
+ QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
++#if QT_VERSION >= 0x051000
+ QCoreApplication::setAttribute(Qt::AA_CompressTabletEvents);
++#endif
+
+ QApplication app(argc, argv);
+ KLocalizedString::setApplicationDomain("okular");
+--
+2.21.0
+