diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-13 05:07:21 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-13 05:07:21 (GMT) |
commit | ae8e4afcadc9ff084e1d1859c29fbc8b629e3392 (patch) | |
tree | 675801312aa5740bc68f67444cb5754dd9e5abe1 /src/declarative/graphicsitems/qdeclarativepath.cpp | |
parent | a19df56265e59bb26f927638aa5c75ccd666c388 (diff) | |
download | Qt-ae8e4afcadc9ff084e1d1859c29fbc8b629e3392.zip Qt-ae8e4afcadc9ff084e1d1859c29fbc8b629e3392.tar.gz Qt-ae8e4afcadc9ff084e1d1859c29fbc8b629e3392.tar.bz2 |
Add an example spinner.
Also add missing increment/decrementCurrentIndex() slots to PathView,
and tweak the number of points cached along a Path.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepath.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepath.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepath.cpp b/src/declarative/graphicsitems/qdeclarativepath.cpp index 3d0df87..2d08c7c 100644 --- a/src/declarative/graphicsitems/qdeclarativepath.cpp +++ b/src/declarative/graphicsitems/qdeclarativepath.cpp @@ -377,7 +377,9 @@ void QDeclarativePath::createPointCache() const { Q_D(const QDeclarativePath); qreal pathLength = d->_path.length(); - const int points = int(pathLength*2); + // more points means less jitter between items as they move along the + // path, but takes longer to generate + const int points = int(pathLength*5); const int lastElement = d->_path.elementCount() - 1; d->_pointCache.resize(points+1); |