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. --- transitionworkerthread.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 transitionworkerthread.h (limited to 'transitionworkerthread.h') diff --git a/transitionworkerthread.h b/transitionworkerthread.h new file mode 100644 index 0000000..b4d3e95 --- /dev/null +++ b/transitionworkerthread.h @@ -0,0 +1,26 @@ +#ifndef REWINDWORKERTHREAD_H +#define REWINDWORKERTHREAD_H + +#include "transitioncontrol.h" + +#include +#include +#include + +class TransitionWorkerThread + : public QThread +{ + Q_OBJECT +public: + TransitionWorkerThread(TransitionControl *control); + TransitionWorkerThread(TransitionControl *control, const QEasingCurve &easing); + + void setEasing(const QEasingCurve &easing); + void run(); + +private: + TransitionControl *m_control; + QEasingCurve m_easing; +}; + +#endif // REWINDWORKERTHREAD_H -- cgit v1.2.3