summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-08 12:29:55 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-08 12:29:55 (GMT)
commit4662f3984a89b7a702a7d24c02cb30b0a5e76ef1 (patch)
tree63b4176237f55a0565310678ed8590f8aefea306 /examples
parent4003ec67b479ae9bb14d65464403fcdad6e9f394 (diff)
downloadQt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.zip
Qt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.tar.gz
Qt-4662f3984a89b7a702a7d24c02cb30b0a5e76ef1.tar.bz2
Make sure we draw the complete curve.
Diffstat (limited to 'examples')
-rw-r--r--examples/animation/easing/window.cpp2
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));