summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-05-28 16:10:46 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-29 12:10:10 +0000
commite396c1908dd1b06f4139db4179890de3bdb5ab95 (patch)
tree7d837e90b9a9b57ad25fae0ce6546c8ace4e8de7 /src/imports
parent8b383480a25cce25a70df9ee37cf0f92c6f2e32c (diff)
downloadqtlocation-e396c1908dd1b06f4139db4179890de3bdb5ab95.tar.gz
Double pan dragStartDistance in mapgesturearea
Commit 929c9a46aaa75ec3c77a226eb9e8a2e956e4763c makes slider in mapviewer impossible to drag, double the drag distance for now Change-Id: Ie9aa8ca17c87b74dd0e22cdb4e5b0845ca652827 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/location/qdeclarativegeomapgesturearea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/location/qdeclarativegeomapgesturearea.cpp b/src/imports/location/qdeclarativegeomapgesturearea.cpp
index b18864eb..2fabd2b3 100644
--- a/src/imports/location/qdeclarativegeomapgesturearea.cpp
+++ b/src/imports/location/qdeclarativegeomapgesturearea.cpp
@@ -1049,7 +1049,7 @@ bool QDeclarativeGeoMapGestureArea::canStartPan()
// Check if thresholds for normal panning are met.
// (normal panning vs flicking: flicking will start from mouse release event).
- const int startDragDistance = qApp->styleHints()->startDragDistance();
+ const int startDragDistance = qApp->styleHints()->startDragDistance() * 2;
QPointF p1 = declarativeMap_->mapFromScene(m_allPoints.at(0).scenePos());
int dyFromPress = int(p1.y() - sceneStartPoint1_.y());
int dxFromPress = int(p1.x() - sceneStartPoint1_.x());