summaryrefslogtreecommitdiffstats
path: root/src/engine/cuecontrol.h
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2015-08-30 13:09:37 +0200
committerUwe Klotz <uwe_klotz@web.de>2016-01-10 19:15:27 +0100
commit102fe1b1ab4e0787bc0b87ab179cea0009c42f2f (patch)
treefa5144206f9daaaee6aadf68edee84f0c072f547 /src/engine/cuecontrol.h
parentdbf6f89395c9c153836bf217f743d3a023e62865 (diff)
Use QSharedPointer for cue points
Diffstat (limited to 'src/engine/cuecontrol.h')
-rw-r--r--src/engine/cuecontrol.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/engine/cuecontrol.h b/src/engine/cuecontrol.h
index cdfcf66248..b4c2661218 100644
--- a/src/engine/cuecontrol.h
+++ b/src/engine/cuecontrol.h
@@ -16,7 +16,6 @@
class ControlObject;
class ControlPushButton;
-class Cue;
class ControlIndicator;
class HotcueControl : public QObject {
@@ -26,8 +25,8 @@ class HotcueControl : public QObject {
virtual ~HotcueControl();
inline int getHotcueNumber() { return m_iHotcueNumber; }
- inline Cue* getCue() { return m_pCue; }
- inline void setCue(Cue* pCue) { m_pCue = pCue; }
+ inline CuePointer getCue() { return m_pCue; }
+ inline void setCue(CuePointer pCue) { m_pCue = pCue; }
inline ControlObject* getPosition() { return m_hotcuePosition; }
inline ControlObject* getEnabled() { return m_hotcueEnabled; }
@@ -63,7 +62,7 @@ class HotcueControl : public QObject {
QString m_group;
int m_iHotcueNumber;
- Cue* m_pCue;
+ CuePointer m_pCue;
// Hotcue state controls
ControlObject* m_hotcuePosition;
@@ -124,7 +123,7 @@ class CueControl : public EngineControl {
private:
// These methods are not thread safe, only call them when the lock is held.
void createControls();
- void attachCue(Cue* pCue, int hotcueNumber);
+ void attachCue(CuePointer pCue, int hotcueNumber);
void detachCue(int hotcueNumber);
void saveCuePoint(double cuePoint);