aboutsummaryrefslogtreecommitdiff
path: root/transitionworkerthread.h
blob: b4d3e9543f4e159c2692f048ed75f9f5babf1e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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