diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-06-08 12:29:55 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-06-08 12:29:55 (GMT) |
commit | 4662f3984a89b7a702a7d24c02cb30b0a5e76ef1 (patch) | |
tree | 63b4176237f55a0565310678ed8590f8aefea306 /examples/animation/easing | |
parent | 4003ec67b479ae9bb14d65464403fcdad6e9f394 (diff) | |
download | Qt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.zip Qt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.tar.gz Qt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.tar.bz2 |
Make sure we draw the complete curve.
Diffstat (limited to 'examples/animation/easing')
-rw-r--r-- | examples/animation/easing/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/animation/easing/window.cpp b/examples/animation/easing/window.cpp index 8a6d850..3e44873 100644 --- a/examples/animation/easing/window.cpp +++ b/examples/animation/easing/window.cpp @@ -111,7 +111,7 @@ void Window::createCurveIcons() QPainterPath curvePath; curvePath.moveTo(start); - for (qreal t = 0; t < 1.0; t+=1.0/curveScale) { + for (qreal t = 0; t <= 1.0; t+=1.0/curveScale) { QPoint to; to.setX(yAxis + curveScale * t); to.setY(xAxis - curveScale * curve.valueForProgress(t)); |