Update buttonDownPos in event filter

This basically fixes the clicked signal, probably a sutble change in Qt
between 4 and 5 revealed this bug.
This commit is contained in:
Sebastian Kügler 2013-11-07 00:20:46 +01:00
parent 67f459609a
commit 44a27ca40a

View File

@ -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;