Commit cb1ff7a8 authored by Laszlo Agocs's avatar Laszlo Agocs Committed by Qt by Nokia

Fix double click handler in QQuickItem.

The legacy, desktop-oriented way of calling mousePressed from the
default handlers for mouseDoubleClick is not working properly with
QWindow and QGuiApplication: In Qt 5 a double click will never
suppress any lower level events (like press or release) and therefore
simulating a mouse press in the double click handlers is wrong.

Change-Id: Ic0ad97a5efbcd3deb1717229010dcb84681d7ed4
Reviewed-by: default avatarKent Hansen <kent.hansen@nokia.com>
parent 406f7418
......@@ -3040,9 +3040,8 @@ void QQuickItem::mouseReleaseEvent(QMouseEvent *event)
event->ignore();
}
void QQuickItem::mouseDoubleClickEvent(QMouseEvent *event)
void QQuickItem::mouseDoubleClickEvent(QMouseEvent *)
{
mousePressEvent(event);
}
void QQuickItem::mouseUngrabEvent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment