From 7d96918246b866a0b4aac6b4dc70e4c049c0ada9 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 11 Feb 2016 16:12:21 -0200 Subject: RewindWorkerThread renamed to TransitionWorkerThread. Also, added easing curve customization. --- rewindworkerthread.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 rewindworkerthread.cpp (limited to 'rewindworkerthread.cpp') diff --git a/rewindworkerthread.cpp b/rewindworkerthread.cpp deleted file mode 100644 index f9fa999..0000000 --- a/rewindworkerthread.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "rewindworkerthread.h" - -// The full duration (usecs) of the restoration animation -static const double DURATION = 250000; - -// The time to wait (usecs) before the next animation tick -static const double TICK_TIME = DURATION / 60.0; - -// The amount to increase 't' per time step -static const double TICK_SIZE = TICK_TIME / DURATION; - -void RewindWorkerThread::run() -{ - double t = m_control->t(); - - while (t + TICK_SIZE < 1.0) { - t += TICK_SIZE; - m_control->setT(t); - QThread::usleep(TICK_TIME); - } - - m_control->setT(1.0); -} -- cgit v1.2.3