Reduce memory usage of QQuickPath for simple paths.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 20 Apr 2012 05:52:41 +0000 (15:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Apr 2012 07:52:33 +0000 (09:52 +0200)
commitb50aa539e854f1a10c5f012a448ab6977c3fc9ac
treeb1a8526c6c621edd76d94870f2c4e6734c7ba71f
parenta0adcc6480bce8ca4f91afc792176d313f92ecee
Reduce memory usage of QQuickPath for simple paths.

For a single segment line path we can get correct results by
interpolating across just two points, so there no need to allocate
the comparatively large point cache required for more complex paths.

This also correct a normally small interpolation error caused by
including the terminal point in the number of intervals.

Change-Id: I564c3c012b6822831251276951603fca8544a356
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/util/qquickpath.cpp
tests/auto/quick/qquickpath/tst_qquickpath.cpp