summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-09 06:11:30 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-08-09 11:49:39 (GMT)
commit75bd4d9b1f14b1aea085af3f6714c06ab6ae1cd2 (patch)
tree25610bb0422eb415ec87bf4e026cefda9cac6893
parent3cfbab2df3962ac76f76aab4e3dd61c9ee55d4d5 (diff)
downloadQt-75bd4d9b1f14b1aea085af3f6714c06ab6ae1cd2.zip
Qt-75bd4d9b1f14b1aea085af3f6714c06ab6ae1cd2.tar.gz
Qt-75bd4d9b1f14b1aea085af3f6714c06ab6ae1cd2.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;
}