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:
parent
67f459609a
commit
44a27ca40a
@ -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());
|
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());
|
m_pressAndHoldEvent = new KDeclarativeMouseEvent(myPos.x(), myPos.y(), me->screenPos().x(), me->screenPos().y(), me->button(), me->buttons(), me->modifiers());
|
||||||
//qDebug() << "pressed in sceneEventFilter";
|
//qDebug() << "pressed in sceneEventFilter";
|
||||||
|
m_buttonDownPos[me->button()] = me->pos();
|
||||||
emit pressed(&dme);
|
emit pressed(&dme);
|
||||||
m_pressed = true;
|
m_pressed = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user