summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-09 04:57:09 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-02-09 05:05:30 (GMT)
commiteb1db74fb59ecb40d541644ce31ce7ec7b2620d2 (patch)
treea8e6bb8d904ea983d908e0a0e13ec773e88f2d56 /src/declarative/graphicsitems
parentccd1b7dd5c8e6b1c4bf5b21354f7b9acaf881b00 (diff)
downloadQt-eb1db74fb59ecb40d541644ce31ce7ec7b2620d2.zip
Qt-eb1db74fb59ecb40d541644ce31ce7ec7b2620d2.tar.gz
Qt-eb1db74fb59ecb40d541644ce31ce7ec7b2620d2.tar.bz2
PathView regression: dragging the path didn't update currentIndex
Some refectoring while fixing QTBUG-13687 resulted in the private setOffset() method being called rather than the public. The public version was responsible for updating currentIndex. Change-Id: Iac9c7a19d6fa64550b9498e77b8983512e199370 Task-number: QTBUG-17319 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems')
-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 64656af..050a9ca 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp
@@ -1152,7 +1152,7 @@ void QDeclarativePathViewPrivate::handleMouseMoveEvent(QGraphicsSceneMouseEvent
moveReason = QDeclarativePathViewPrivate::Mouse;
qreal diff = (newPc - startPc)*modelCount*mappedRange;
if (diff) {
- setOffset(offset + diff);
+ q->setOffset(offset + diff);
if (diff > modelCount/2)
diff -= modelCount;