From 57ae961bcf09efd98968b918332f8ff30562cd92 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 20 Sep 2013 15:26:03 +0200 Subject: Support looping for "uncontrolled animations". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The render thread animations rely heavily on uncontrolled animations, meaning animations with duration=-1. We support this by adding a m_currentLoopStartTime and incrementally counting the finish time of each uncontrolled animation. Change-Id: I1f2ccea09aff4c51b1a7f98a2ddb58636af50557 Reviewed-by: Jan Arve Sæther --- src/quick/util/qquickanimatorjob.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/quick/util/qquickanimatorjob.cpp') diff --git a/src/quick/util/qquickanimatorjob.cpp b/src/quick/util/qquickanimatorjob.cpp index 3270faa652..ea8da018b0 100644 --- a/src/quick/util/qquickanimatorjob.cpp +++ b/src/quick/util/qquickanimatorjob.cpp @@ -185,7 +185,6 @@ bool QQuickAnimatorProxyJob::event(QEvent *e) if ((uint) e->type() == QQuickAnimatorController::AnimationFinished) { // Update the duration of this proxy to the current time and stop it so // that parent animations can progress gracefully - m_duration = m_currentTime; stop(); return true; } -- cgit v1.2.3