┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/ktwofingertap.cpp
diff options
context:
space:
mode:
authorSteffen Hartleib <[email protected]>2020-09-26 14:53:57 +0000
committerElvis Angelaccio <[email protected]>2020-09-26 14:53:57 +0000
commit81cf9f0375c937b973900dce0979d9218d9960ee (patch)
tree25d0dd3b3641b190fdd3c0b2bffe9e056e5ec19c /src/kitemviews/private/ktwofingertap.cpp
parentb02046c5484f9c5bb9b5146fc4d521e4da2103a3 (diff)
Allow interaction with folder/files with the stylus again
This Patch works for Wayland and X. BUG: 426582
Diffstat (limited to 'src/kitemviews/private/ktwofingertap.cpp')
-rw-r--r--src/kitemviews/private/ktwofingertap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kitemviews/private/ktwofingertap.cpp b/src/kitemviews/private/ktwofingertap.cpp
index 9f4521d26..edd9d1d35 100644
--- a/src/kitemviews/private/ktwofingertap.cpp
+++ b/src/kitemviews/private/ktwofingertap.cpp
@@ -10,6 +10,7 @@
// Qt
#include <QTouchEvent>
#include <QApplication>
+#include <QGraphicsWidget>
KTwoFingerTapRecognizer::KTwoFingerTapRecognizer() :
QGestureRecognizer(),
@@ -28,7 +29,9 @@ QGesture* KTwoFingerTapRecognizer::create(QObject*)
QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize(QGesture* gesture, QObject* watched, QEvent* event)
{
- Q_UNUSED(watched)
+ if (qobject_cast<QGraphicsWidget*>(watched)) {
+ return Ignore;
+ }
KTwoFingerTap* const kTwoFingerTap = static_cast<KTwoFingerTap*>(gesture);
const QTouchEvent* touchEvent = static_cast<const QTouchEvent*>(event);