Skip to content

Commit

Permalink
Merge pull request #12342 from ronso0/revert-qt6-ifdefs
Browse files Browse the repository at this point in the history
Revert "BaseTrackPlayer: Remove references to WaveformWidgetRenderer when using Qt6"
  • Loading branch information
daschuer authored Nov 23, 2023
2 parents 91c1869 + fa4ac67 commit 2c2e706
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/mixer/basetrackplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,13 +800,8 @@ void BaseTrackPlayerImpl::slotVinylControlEnabled(double v) {
}

void BaseTrackPlayerImpl::slotWaveformZoomValueChangeRequest(double v) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (v <= WaveformWidgetRenderer::s_waveformMaxZoom
&& v >= WaveformWidgetRenderer::s_waveformMinZoom) {
#else
// TODO: Re-enable zoom range check or decouple zoom from engine code
{
#endif
m_pWaveformZoom->setAndConfirm(v);
}
}
Expand All @@ -833,12 +828,7 @@ void BaseTrackPlayerImpl::slotWaveformZoomSetDefault(double pressed) {
}

double defaultZoom = m_pConfig->getValue(ConfigKey("[Waveform]", "DefaultZoom"),
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
WaveformWidgetRenderer::s_waveformDefaultZoom);
#else
// TODO: This should not be hardcoded.
3.0);
#endif
m_pWaveformZoom->set(defaultZoom);
}

Expand Down

0 comments on commit 2c2e706

Please sign in to comment.