summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepathview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-03 01:59:49 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-03 01:59:49 (GMT)
commitf23ddfc5d3df3cfb99ed66704beab015796dcb31 (patch)
tree0a72ed752d5760d2cc9f0f4f1a8d1d71c81fc001 /src/declarative/graphicsitems/qdeclarativepathview.cpp
parent8aaeff9fb126021432e469899534e87a107c8b2d (diff)
downloadQt-f23ddfc5d3df3cfb99ed66704beab015796dcb31.zip
Qt-f23ddfc5d3df3cfb99ed66704beab015796dcb31.tar.gz
Qt-f23ddfc5d3df3cfb99ed66704beab015796dcb31.tar.bz2
Ensure PathView mappedRange is updated when pathItemCount changes.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepathview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp
index 695af7e..f58b054 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp
@@ -895,6 +895,7 @@ void QDeclarativePathView::setPathItemCount(int i)
if (i < 1)
i = 1;
d->pathItems = i;
+ d->updateMappedRange();
if (d->isValid() && isComponentComplete()) {
d->regenerate();
}