diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2021-01-05 22:46:50 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2021-01-05 22:50:50 +0100 |
commit | fe6d2785f1f131caf2d1ea0f8d77be2f9955c2db (patch) | |
tree | 30df55da0720a0baa471976902b8825c4b23bf0a /src/track/cueinfo.cpp | |
parent | 3616647915b87d360b65dc51cee6f79b246b8b43 (diff) |
CueInfo: Add support for flags
Diffstat (limited to 'src/track/cueinfo.cpp')
-rw-r--r-- | src/track/cueinfo.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/track/cueinfo.cpp b/src/track/cueinfo.cpp index 0d678ade6a..688ec28b51 100644 --- a/src/track/cueinfo.cpp +++ b/src/track/cueinfo.cpp @@ -9,7 +9,8 @@ CueInfo::CueInfo() m_startPositionMillis(std::nullopt), m_endPositionMillis(std::nullopt), m_hotCueIndex(std::nullopt), - m_color(std::nullopt) { + m_color(std::nullopt), + m_flags(CueFlag::None) { } CueInfo::CueInfo( @@ -18,13 +19,15 @@ CueInfo::CueInfo( std::optional<double> endPositionMillis, std::optional<int> hotCueIndex, const QString& label, - mixxx::RgbColor::optional_t color) + mixxx::RgbColor::optional_t color, + CueFlags flags) : m_type(type), m_startPositionMillis(startPositionMillis), m_endPositionMillis(endPositionMillis), m_hotCueIndex(hotCueIndex), m_label(label), - m_color(color) { + m_color(color), + m_flags(flags) { } CueType CueInfo::getType() const { @@ -129,6 +132,7 @@ QDebug operator<<(QDebug debug, const CueInfo& cueInfo) { << ", index=" << cueInfo.getHotCueIndex() << ", label=" << cueInfo.getLabel() << ", color=" << cueInfo.getColor() + << ", flags=" << cueInfo.flags() << "]"; return debug; } |