summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-apps/cantor/cantor-15.12.3-r1.ebuild5
-rw-r--r--kde-apps/cantor/files/cantor-15.12.3-qt56.patch27
2 files changed, 31 insertions, 1 deletions
diff --git a/kde-apps/cantor/cantor-15.12.3-r1.ebuild b/kde-apps/cantor/cantor-15.12.3-r1.ebuild
index b01bd79affd..1d0a335b583 100644
--- a/kde-apps/cantor/cantor-15.12.3-r1.ebuild
+++ b/kde-apps/cantor/cantor-15.12.3-r1.ebuild
@@ -56,7 +56,10 @@ DEPEND="${RDEPEND}
RESTRICT="test"
-PATCHES=( "${FILESDIR}/${P}-tests.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-tests.patch"
+ "${FILESDIR}/${P}-qt56.patch"
+)
pkg_setup() {
use python && python_setup
diff --git a/kde-apps/cantor/files/cantor-15.12.3-qt56.patch b/kde-apps/cantor/files/cantor-15.12.3-qt56.patch
new file mode 100644
index 00000000000..6434f659288
--- /dev/null
+++ b/kde-apps/cantor/files/cantor-15.12.3-qt56.patch
@@ -0,0 +1,27 @@
+From 683418b3663ddc588c44063cc11abb20970e8e08 Mon Sep 17 00:00:00 2001
+From: David Faure <faure@kde.org>
+Date: Thu, 2 Jun 2016 08:56:43 +0200
+Subject: [PATCH] Fix compilation error "qobject.h:300:9: error: static
+ assertion failed: Signal and slot arguments are not compatible."
+
+(cherry picked from commit 841b6f6e19d829d6ab9ee13a5d4b0bcc9f1ee2df)
+---
+ src/worksheettextitem.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/worksheettextitem.cpp b/src/worksheettextitem.cpp
+index 503153c..493ed48 100644
+--- a/src/worksheettextitem.cpp
++++ b/src/worksheettextitem.cpp
+@@ -180,7 +180,7 @@ void WorksheetTextItem::populateMenu(QMenu *menu, const QPointF& pos)
+ QKeyEvent* WorksheetTextItem::eventForStandardAction(KStandardAction::StandardAction actionID)
+ {
+ // there must be a better way to get the shortcut...
+- QAction * action = KStandardAction::create(actionID, this, 0, this);
++ QAction * action = KStandardAction::create(actionID, this, SLOT(copy()), this);
+ QKeySequence keySeq = action->shortcut();
+ // we do not support key sequences with multiple keys here
+ int code = keySeq[0];
+--
+2.7.3
+