X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogshuttle.h;h=d0bb786753e4984091d60f3153e5f3674957c46a;hb=8a6e4eb1dea318ecd1c0b313c28b764e89a524c4;hp=f2523cc93c56ec6e20a38092ac050258541a8aa7;hpb=778b2a473faa6c8b9fc966fc1b92d33d77056107;p=kdenlive diff --git a/src/jogshuttle.h b/src/jogshuttle.h index f2523cc9..d0bb7867 100644 --- a/src/jogshuttle.h +++ b/src/jogshuttle.h @@ -21,7 +21,7 @@ #ifndef SHUTTLE_H #define SHUTTLE_H -#include +#include #include #include @@ -34,10 +34,10 @@ class ShuttleThread : public QThread public: virtual void run(); - void init(QObject *parent, QString device); + void init(QObject *parent, const QString &device); QObject *m_parent; int shuttlevalue; - bool shuttlechange; + int shuttlecounter; unsigned short jogvalue; bool isWorking(); volatile bool stop_me; @@ -55,10 +55,10 @@ private: class JogShuttle: public QObject { Q_OBJECT public: - explicit JogShuttle(QString device, QObject * parent = 0); + explicit JogShuttle(const QString &device, QObject * parent = 0); ~JogShuttle(); void stopDevice(); - void initDevice(QString device); + void initDevice(const QString &device); protected: virtual void customEvent(QEvent * e);