From 44a27ca40a787e58456d63400fee6e0b32cdb34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 7 Nov 2013 00:20:46 +0100 Subject: [PATCH] Update buttonDownPos in event filter This basically fixes the clicked signal, probably a sutble change in Qt between 4 and 5 revealed this bug. --- src/declarativeimports/qtextracomponents/mouseeventlistener.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/declarativeimports/qtextracomponents/mouseeventlistener.cpp b/src/declarativeimports/qtextracomponents/mouseeventlistener.cpp index ec3e30974..2259d8327 100644 --- a/src/declarativeimports/qtextracomponents/mouseeventlistener.cpp +++ b/src/declarativeimports/qtextracomponents/mouseeventlistener.cpp @@ -220,6 +220,7 @@ bool MouseEventListener::childMouseEventFilter(QQuickItem *item, QEvent *event) KDeclarativeMouseEvent dme(myPos.x(), myPos.y(), me->screenPos().x(), me->screenPos().y(), me->button(), me->buttons(), me->modifiers()); m_pressAndHoldEvent = new KDeclarativeMouseEvent(myPos.x(), myPos.y(), me->screenPos().x(), me->screenPos().y(), me->button(), me->buttons(), me->modifiers()); //qDebug() << "pressed in sceneEventFilter"; + m_buttonDownPos[me->button()] = me->pos(); emit pressed(&dme); m_pressed = true;