summaryrefslogtreecommitdiff
path: root/user/kpimtextedit/qt5.9.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-19 07:33:49 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-19 07:33:49 +0000
commite4f5e187a9eaa4b7a2d2c33c18ea5c020aece30e (patch)
tree765c43e23668dd79b2dab94029fb96813c7f824e /user/kpimtextedit/qt5.9.patch
parent6162950549630e75dd1f2d3037cabd23559b2822 (diff)
downloadpackages-e4f5e187a9eaa4b7a2d2c33c18ea5c020aece30e.tar.gz
packages-e4f5e187a9eaa4b7a2d2c33c18ea5c020aece30e.tar.bz2
packages-e4f5e187a9eaa4b7a2d2c33c18ea5c020aece30e.tar.xz
packages-e4f5e187a9eaa4b7a2d2c33c18ea5c020aece30e.zip
user/*: KDE Applications 19.04.0
Diffstat (limited to 'user/kpimtextedit/qt5.9.patch')
-rw-r--r--user/kpimtextedit/qt5.9.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/kpimtextedit/qt5.9.patch b/user/kpimtextedit/qt5.9.patch
new file mode 100644
index 000000000..50c29e0e0
--- /dev/null
+++ b/user/kpimtextedit/qt5.9.patch
@@ -0,0 +1,49 @@
+From 6961b54d1c814f2e7aafd7db8256f82688f014a3 Mon Sep 17 00:00:00 2001
+Date: Mon, 17 Dec 2018 07:23:52 +0100
+Subject: Revert "Remove QT_CHECK"
+
+---
+ .../plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/texteditor/plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp b/src/texteditor/plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp
+index 8ce0fe9..c07699c 100644
+--- a/src/texteditor/plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp
++++ b/src/texteditor/plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp
+@@ -144,9 +144,13 @@ void PlainTextSyntaxSpellCheckingHighlighter::highlightBlock(const QString &text
+
+ const auto nextBlock = currentBlock().next();
+ if (nextBlock.isValid()) {
++#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
+ QMetaObject::invokeMethod(this, [this, nextBlock] {
+ rehighlightBlock(nextBlock);
+ }, Qt::QueuedConnection);
++#else
++ QMetaObject::invokeMethod(this, "rehighlightBlock", Qt::QueuedConnection, Q_ARG(QTextBlock, nextBlock));
++#endif
+ }
+ }
+
+--
+cgit v1.1
+
+--- kpimtextedit-19.04.0/CMakeLists.txt.old 2019-04-12 00:14:22.000000000 +0000
++++ kpimtextedit-19.04.0/CMakeLists.txt 2019-04-19 06:21:56.055556133 +0000
+@@ -4,7 +4,7 @@
+ project(KPimTextEdit VERSION ${PIM_VERSION})
+
+ # ECM setup
+-set(KF5_MIN_VERSION "5.56.0")
++set(KF5_MIN_VERSION "5.54.0")
+
+ find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
+ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
+@@ -36,7 +36,7 @@
+ SOVERSION 5
+ )
+
+-set(QT_REQUIRED_VERSION "5.10.0")
++set(QT_REQUIRED_VERSION "5.9.0")
+ find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Widgets)
+ find_package(Grantlee5 "5.1" CONFIG REQUIRED)
+ set_package_properties(Grantlee5 PROPERTIES