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/qquickanimation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/util/qquickanimation.cpp') diff --git a/src/quick/util/qquickanimation.cpp b/src/quick/util/qquickanimation.cpp index 60953528f6..06b4e83c0d 100644 --- a/src/quick/util/qquickanimation.cpp +++ b/src/quick/util/qquickanimation.cpp @@ -1921,6 +1921,7 @@ void QQuickBulkValueAnimator::topLevelAnimationLoopChanged() //check for new from every top-level loop (when the top level animation is started and all subsequent loops) if (fromSourced) *fromSourced = false; + QAbstractAnimationJob::topLevelAnimationLoopChanged(); } /*! -- cgit v1.2.3