diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-06-10 17:50:50 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2020-06-10 18:00:19 +0200 |
commit | fd37489a8d6bfa8f30cc495153381e29fc00e624 (patch) | |
tree | c472cc869275282f44601c3cbf1b8d10609942f9 /src/waveform/renderers/waveformwidgetrenderer.cpp | |
parent | 65698c9adf47ff020d4e2b6624799b94362af6c9 (diff) |
Get rid of char group strings
For accessing control objects we need QStrings and converting them on the fly
takes some unnecassary time.
Diffstat (limited to 'src/waveform/renderers/waveformwidgetrenderer.cpp')
-rw-r--r-- | src/waveform/renderers/waveformwidgetrenderer.cpp | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/src/waveform/renderers/waveformwidgetrenderer.cpp b/src/waveform/renderers/waveformwidgetrenderer.cpp index bd181fdf0f..638912feef 100644 --- a/src/waveform/renderers/waveformwidgetrenderer.cpp +++ b/src/waveform/renderers/waveformwidgetrenderer.cpp @@ -14,34 +14,33 @@ const double WaveformWidgetRenderer::s_waveformMaxZoom = 10.0; const double WaveformWidgetRenderer::s_waveformDefaultZoom = 3.0; const double WaveformWidgetRenderer::s_defaultPlayMarkerPosition = 0.5; -WaveformWidgetRenderer::WaveformWidgetRenderer(const char* group) - : m_group(group), - m_orientation(Qt::Horizontal), - m_height(-1), - m_width(-1), - m_devicePixelRatio(1.0f), - - m_firstDisplayedPosition(0.0), - m_lastDisplayedPosition(0.0), - m_trackPixelCount(0.0), - - m_zoomFactor(1.0), - m_visualSamplePerPixel(1.0), - m_audioSamplePerPixel(1.0), - m_alphaBeatGrid(90), - // Really create some to manage those; - m_visualPlayPosition(NULL), - m_playPos(-1), - m_playPosVSample(0), - m_pRateRatioCO(NULL), - m_rateRatio(1.0), - m_pGainControlObject(NULL), - m_gain(1.0), - m_pTrackSamplesControlObject(NULL), - m_trackSamples(0.0), - m_scaleFactor(1.0), - m_playMarkerPosition(s_defaultPlayMarkerPosition) { - +WaveformWidgetRenderer::WaveformWidgetRenderer(const QString& group) + : m_group(group), + m_orientation(Qt::Horizontal), + m_height(-1), + m_width(-1), + m_devicePixelRatio(1.0f), + + m_firstDisplayedPosition(0.0), + m_lastDisplayedPosition(0.0), + m_trackPixelCount(0.0), + + m_zoomFactor(1.0), + m_visualSamplePerPixel(1.0), + m_audioSamplePerPixel(1.0), + m_alphaBeatGrid(90), + // Really create some to manage those; + m_visualPlayPosition(NULL), + m_playPos(-1), + m_playPosVSample(0), + m_pRateRatioCO(NULL), + m_rateRatio(1.0), + m_pGainControlObject(NULL), + m_gain(1.0), + m_pTrackSamplesControlObject(NULL), + m_trackSamples(0.0), + m_scaleFactor(1.0), + m_playMarkerPosition(s_defaultPlayMarkerPosition) { //qDebug() << "WaveformWidgetRenderer"; #ifdef WAVEFORMWIDGETRENDERER_DEBUG |