aboutsummaryrefslogtreecommitdiff
path: root/transitionworkerthread.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-11 16:12:21 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-11 16:12:21 -0200
commit7d96918246b866a0b4aac6b4dc70e4c049c0ada9 (patch)
tree0fabeec2a9dbef56478a3d07c5728e81b8c384dc /transitionworkerthread.h
parent5f22fd080bb62a9242d1452415f5073bcfd69c49 (diff)
RewindWorkerThread renamed to TransitionWorkerThread.
Also, added easing curve customization.
Diffstat (limited to 'transitionworkerthread.h')
-rw-r--r--transitionworkerthread.h26
1 files changed, 26 insertions, 0 deletions
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 <QObject>
+#include <QThread>
+#include <QEasingCurve>
+
+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