diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-05-06 16:39:50 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-05-06 16:49:26 +0200 |
commit | 9f5c56579bbcbd421805869ff1f27e8d45c47ea2 (patch) | |
tree | fb47d76d2619cedb6e6e0dd19fa598fe01fc5bb0 /src | |
parent | 62d114f67f96f027a74f40786a02ba46029ee9ea (diff) |
waveform/renderers/waveformmarkset: Draw hotcue mark with lowest index on top
Currently, hotcue marks on the same position are drawn over each other
and only the hotcue mark with the highest index is shown. Since not all
hotcue indices might be mapped on the controller (or accessible via the
skin) it makes sense to draw mark with the lowest index on top to
increase the chance that a user can jump to it via GUI or performance
pads.
Zulip Discussion:
https://mixxx.zulipchat.com/#narrow/stream/109171-development/topic/hotcue.20markers.20drawn.20over.20each.20other
Diffstat (limited to 'src')
-rw-r--r-- | src/waveform/renderers/waveformmarkset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waveform/renderers/waveformmarkset.cpp b/src/waveform/renderers/waveformmarkset.cpp index d35266b2a4..45ab38fda3 100644 --- a/src/waveform/renderers/waveformmarkset.cpp +++ b/src/waveform/renderers/waveformmarkset.cpp @@ -55,7 +55,7 @@ void WaveformMarkSet::setup(const QString& group, const QDomNode& node, if (m_hotCueMarks.value(i).isNull()) { //qDebug() << "WaveformRenderMark::setup - Automatic mark" << hotCueControlItem; WaveformMarkPointer pMark(new WaveformMark(group, defaultChild, context, signalColors, i)); - m_marks.push_back(pMark); + m_marks.push_front(pMark); m_hotCueMarks.insert(pMark->getHotCue(), pMark); } } |