summaryrefslogtreecommitdiffstats
path: root/src/track/cue.cpp
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2019-05-07 11:12:46 -0500
committerBe <be@mixxx.org>2019-05-07 11:31:22 -0500
commitc45b27f6118d142ad590c25d5a73b46c672a6ab7 (patch)
tree134ac2cf4f2bc50a67d5271b7efc29c77c469673 /src/track/cue.cpp
parent450d409bd9b3cd621857950ed1492e737e33f2f6 (diff)
convert Cue::CueType to enum class
Diffstat (limited to 'src/track/cue.cpp')
-rw-r--r--src/track/cue.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/track/cue.cpp b/src/track/cue.cpp
index 1d27df21c6..3110634c85 100644
--- a/src/track/cue.cpp
+++ b/src/track/cue.cpp
@@ -24,7 +24,7 @@ Cue::Cue(TrackId trackId)
m_iId(-1),
m_trackId(trackId),
m_source(UNKNOWN),
- m_type(INVALID),
+ m_type(Cue::Type::Invalid),
m_samplePosition(-1.0),
m_length(0.0),
m_iHotCue(-1),
@@ -33,7 +33,7 @@ Cue::Cue(TrackId trackId)
DEBUG_ASSERT(!m_label.isNull());
}
-Cue::Cue(int id, TrackId trackId, Cue::CueSource source, Cue::CueType type, double position, double length,
+Cue::Cue(int id, TrackId trackId, Cue::CueSource source, Cue::Type type, double position, double length,
int hotCue, QString label, PredefinedColorPointer color)
: m_bDirty(false),
m_iId(id),
@@ -87,12 +87,12 @@ void Cue::setSource(CueSource source) {
emit(updated());
}
-Cue::CueType Cue::getType() const {
+Cue::Type Cue::getType() const {
QMutexLocker lock(&m_mutex);
return m_type;
}
-void Cue::setType(Cue::CueType type) {
+void Cue::setType(Cue::Type type) {
QMutexLocker lock(&m_mutex);
m_type = type;
m_bDirty = true;