From 07b9d583273b8e3aa5712eac9d06b74ddb927db3 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Tue, 31 May 2016 16:06:02 +0200 Subject: fix for losing map item focus while dragging them QDeclarativeGeoMapItemBase::childMouseEventFilter currently does a contain() check on the clicks but also on the mouse move events. by not doing it on mouse move events the problem seems fixed, but the autotests get broken because it seems that the map doesn't get panned anymore but the element gets dragged instead. Task-number: QTBUG-52075 Change-Id: I5ce340ca591ec924eebed1fe7acda18d31301fc5 Reviewed-by: Alex Blasche --- src/imports/location/qdeclarativegeomapitembase.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/imports/location/qdeclarativegeomapitembase.cpp b/src/imports/location/qdeclarativegeomapitembase.cpp index 3cd29ce3..8e825f5b 100644 --- a/src/imports/location/qdeclarativegeomapitembase.cpp +++ b/src/imports/location/qdeclarativegeomapitembase.cpp @@ -201,7 +201,6 @@ bool QDeclarativeGeoMapItemBase::childMouseEventFilter(QQuickItem *item, QEvent switch (event->type()) { case QEvent::MouseButtonPress: case QEvent::MouseButtonRelease: - case QEvent::MouseMove: if (contains(static_cast(event)->pos())) { return false; } else { -- cgit v1.2.1