summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-09 06:11:30 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-09 06:11:30 (GMT)
commit44d5bcde1713a5f51b7140259e9fd4e426a868a8 (patch)
tree2b0acc764f4789a2863d82b77f8407a592764ba0
parent1d09376c4eec88ba94f00a4b045fc425c5f51346 (diff)
downloadQt-44d5bcde1713a5f51b7140259e9fd4e426a868a8.zip
Qt-44d5bcde1713a5f51b7140259e9fd4e426a868a8.tar.gz
Qt-44d5bcde1713a5f51b7140259e9fd4e426a868a8.tar.bz2
PathView required some diagonal movement before a drag was initiated.
Any movement beyond the threshold is sufficient. Task-number: 12747 Reviewed-by: Joona Petrell
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp
index 06ac275..5771f84 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp
@@ -1061,7 +1061,7 @@ void QDeclarativePathView::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if (!d->stealMouse) {
QPointF delta = event->pos() - d->startPoint;
- if (qAbs(delta.x()) > QApplication::startDragDistance() && qAbs(delta.y()) > QApplication::startDragDistance())
+ if (qAbs(delta.x()) > QApplication::startDragDistance() || qAbs(delta.y()) > QApplication::startDragDistance())
d->stealMouse = true;
}