From 47fb7fdc5d16582772f9c3fc8a6a674a41a7f605 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 29 May 2018 13:34:56 -0500 Subject: [PATCH] drop QTest's waitForEvents --- PyQt5-qt511.patch | 11 +++++++++++ python-qt5.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 PyQt5-qt511.patch diff --git a/PyQt5-qt511.patch b/PyQt5-qt511.patch new file mode 100644 index 0000000..2ada9a3 --- /dev/null +++ b/PyQt5-qt511.patch @@ -0,0 +1,11 @@ +diff -up PyQt5_gpl-5.10.2.dev1805251538/sip/QtTest/qtestmouse.sip.qt511 PyQt5_gpl-5.10.2.dev1805251538/sip/QtTest/qtestmouse.sip +--- PyQt5_gpl-5.10.2.dev1805251538/sip/QtTest/qtestmouse.sip.qt511 2018-05-25 20:33:17.000000000 -0500 ++++ PyQt5_gpl-5.10.2.dev1805251538/sip/QtTest/qtestmouse.sip 2018-05-29 13:33:57.896800513 -0500 +@@ -41,7 +41,6 @@ namespace QTest + void mousePress(QWidget *widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1); + void mouseRelease(QWidget *widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1); + void mouseEvent(QTest::MouseAction action, QWidget *widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier, QPoint pos, int delay = -1); +- void waitForEvents() /ReleaseGIL/; + void mouseEvent(QTest::MouseAction action, QWindow *window, Qt::MouseButton button, Qt::KeyboardModifiers modifier, QPoint pos, int delay = -1); + void mousePress(QWindow *window, Qt::MouseButton button, Qt::KeyboardModifiers modifier = Qt::KeyboardModifiers(), QPoint pos = QPoint(), int delay = -1); + void mouseRelease(QWindow *window, Qt::MouseButton button, Qt::KeyboardModifiers modifier = Qt::KeyboardModifiers(), QPoint pos = QPoint(), int delay = -1); diff --git a/python-qt5.spec b/python-qt5.spec index fb210a6..1969cff 100644 --- a/python-qt5.spec +++ b/python-qt5.spec @@ -45,6 +45,8 @@ Source4: pyuic5.sh Patch0: python-qt5_sipdir.patch # support newer Qt5 releases than 5.9.3/5.10.0 Patch1: PyQt5-Timeline.patch +# QTest dropped waitForEvents +Patch2: PyQt5-qt511.patch BuildRequires: chrpath BuildRequires: findutils @@ -232,6 +234,7 @@ Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release} %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build