diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 077084b..79dc64b 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2007,6 +2007,7 @@ Q_GUI_EXPORT bool operator==(const QGuiApplicationPrivate::ActiveTouchPointsKey void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::TouchEvent *e) { + qDebug() << __FUNCTION__ <window << e->type <<"pts" << e->points.size(); QGuiApplicationPrivate *d = self; modifier_buttons = e->modifiers; @@ -2051,8 +2052,10 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To } // Prevent sending ill-formed event sequences: Cancel can only be followed by a Begin. - if (self->lastTouchType == QEvent::TouchCancel && e->touchType != QEvent::TouchBegin) + if (self->lastTouchType == QEvent::TouchCancel && e->touchType != QEvent::TouchBegin) { + qDebug() << __FUNCTION__ <window << "return1: Cancel"; return; + } self->lastTouchType = e->touchType; @@ -2152,8 +2155,10 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To maskAndPoints.second.append(touchPoint); } - if (windowsNeedingEvents.isEmpty()) + if (windowsNeedingEvents.isEmpty()) { + qDebug() << __FUNCTION__ <window << "return2: windowsNeedingEvents"; return; + } QHash::ConstIterator it = windowsNeedingEvents.constBegin(); const QHash::ConstIterator end = windowsNeedingEvents.constEnd(); diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 902c324..c6fb559 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -400,6 +400,7 @@ void QWindowSystemInterface::registerTouchDevice(QTouchDevice *device) void QWindowSystemInterface::handleTouchEvent(QWindow *w, QTouchDevice *device, const QList &points, Qt::KeyboardModifiers mods) { + qDebug() << __FUNCTION__ < QWindowSystemInterfacePrivate::convertTouchPoints void QWindowSystemInterface::handleTouchEvent(QWindow *tlw, ulong timestamp, QTouchDevice *device, const QList &points, Qt::KeyboardModifiers mods) { + qDebug() << __FUNCTION__ < QTouchPointList;