Skip to content

Commit

Permalink
Merge pull request #13219 from ronso0/waveform-hotcue-label-noelide
Browse files Browse the repository at this point in the history
Waveforms: don't elide hotcue labels
  • Loading branch information
daschuer authored May 8, 2024
2 parents accb87f + c82afa3 commit fc96155
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/waveform/renderers/waveformmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,10 @@ QImage WaveformMark::generateImage(float devicePixelRatio) {

// Determine mark text.
if (getHotCue() >= 0) {
constexpr int kMaxCueLabelLength = 23;
if (!label.isEmpty()) {
label.prepend(": ");
}
label.prepend(QString::number(getHotCue() + 1));
if (label.size() > kMaxCueLabelLength) {
label = label.left(kMaxCueLabelLength - 3) + "...";
}
}

const bool useIcon = m_iconPath != "";
Expand Down

0 comments on commit fc96155

Please sign in to comment.