summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-09 04:57:09 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-02-10 12:52:50 (GMT)
commit83579a4e0f2d808dc6d28569335668e71e5b6ad9 (patch)
tree024fe25c6b0b8282078ad0792e24b8e1edfbe61f /src
parent42d621b2b184702b78af5bb579ed2c9bd819bbcc (diff)
downloadQt-83579a4e0f2d808dc6d28569335668e71e5b6ad9.zip
Qt-83579a4e0f2d808dc6d28569335668e71e5b6ad9.tar.gz
Qt-83579a4e0f2d808dc6d28569335668e71e5b6ad9.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 (cherry picked from commit eb1db74fb59ecb40d541644ce31ce7ec7b2620d2)
Diffstat (limited to 'src')
-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;