diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-09 06:11:30 (GMT) |
---|---|---|
committer | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-08-09 11:49:39 (GMT) |
commit | 75bd4d9b1f14b1aea085af3f6714c06ab6ae1cd2 (patch) | |
tree | 25610bb0422eb415ec87bf4e026cefda9cac6893 | |
parent | 3cfbab2df3962ac76f76aab4e3dd61c9ee55d4d5 (diff) | |
download | Qt-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.cpp | 2 |
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; } |