summaryrefslogtreecommitdiff
path: root/dev-qt/qtwidgets/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /dev-qt/qtwidgets/files
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'dev-qt/qtwidgets/files')
-rw-r--r--dev-qt/qtwidgets/files/qtwidgets-5.12.4-synth-enterleaveEvent-for-accepted-QTabletEvent.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/dev-qt/qtwidgets/files/qtwidgets-5.12.4-synth-enterleaveEvent-for-accepted-QTabletEvent.patch b/dev-qt/qtwidgets/files/qtwidgets-5.12.4-synth-enterleaveEvent-for-accepted-QTabletEvent.patch
deleted file mode 100644
index ab225009ab43..000000000000
--- a/dev-qt/qtwidgets/files/qtwidgets-5.12.4-synth-enterleaveEvent-for-accepted-QTabletEvent.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From de811eca72d17b7ef734afc1d44af00cc5952f22 Mon Sep 17 00:00:00 2001
-From: Dmitry Kazakov <dimula73@gmail.com>
-Date: Mon, 11 Mar 2019 13:18:06 +0300
-Subject: [PATCH] Synthesize Enter/LeaveEvent for accepted QTabletEvent
-
-When the tablet event is accepted, then Qt doesn't synthesize a mouse
-event, it means that QApplicationPrivate::sendMouseEvent() will not be
-called, and, therefore, enter/leave events will not be dispatched.
-
-The patch looks a bit hackish. Ideally, the synthesize should happen
-in QGuiApplicationPrivate::processTabletEvent(), which takes the decision
-about synthesizing mouse events. But there is not enough information
-on this level: neither qt_last_mouse_receiver nor the receiver widget
-are known at this stage.
-
-On Windows and other platforms where there is a parallel stream of
-mouse events synthesized by the platform, we shouldn't generate these
-events manually.
-
-Change-Id: Ifbad6284483ee282ad129db54606f5d0d9ddd633
----
- src/widgets/kernel/qwidgetwindow.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/src/widgets/kernel/qwidgetwindow.cpp b/src/widgets/kernel/qwidgetwindow.cpp
-index fbc71cd0ea1..729a7f701ae 100644
---- a/src/widgets/kernel/qwidgetwindow.cpp
-+++ b/src/widgets/kernel/qwidgetwindow.cpp
-@@ -1051,6 +1051,18 @@ void QWidgetWindow::handleTabletEvent(QTabletEvent *event)
- event->setAccepted(ev.isAccepted());
- }
-
-+ /**
-+ * Synthesize Enter/Leave events if it is requested by the system and user
-+ */
-+ if (widget != qt_last_mouse_receiver &&
-+ event->isAccepted() &&
-+ !QWindowSystemInterfacePrivate::TabletEvent::platformSynthesizesMouse &&
-+ qApp->testAttribute(Qt::AA_SynthesizeMouseForUnhandledTabletEvents)) {
-+
-+ QApplicationPrivate::dispatchEnterLeave(widget, qt_last_mouse_receiver, event->globalPos());
-+ qt_last_mouse_receiver = widget;
-+ }
-+
- if (event->type() == QEvent::TabletRelease && event->buttons() == Qt::NoButton)
- qt_tablet_target = 0;
- }
---
-2.16.3