From b5538c7da818cbcdde5ff1c885ce4eee5b626f3b Mon Sep 17 00:00:00 2001 From: Dave French Date: Tue, 23 Dec 2014 22:26:36 +0000 Subject: [PATCH] used newWaveView in constructor, to remove redundancy --- plugins/audio_file_processor/audio_file_processor.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index a67b91ce7..74a9354a5 100644 --- a/plugins/audio_file_processor/audio_file_processor.cpp +++ b/plugins/audio_file_processor/audio_file_processor.cpp @@ -575,13 +575,8 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument, m_interpBox->setFont( pointSize<8>( m_interpBox->font() ) ); // wavegraph - m_waveView = new AudioFileProcessorWaveView( this, 245, 75, castModel()->m_sampleBuffer ); - m_waveView->move( 2, 172 ); - m_waveView->setKnobs( - dynamic_cast( m_startKnob ), - dynamic_cast( m_endKnob ), - dynamic_cast( m_loopKnob ) - ); + m_waveView = 0; + newWaveView(); connect( castModel(), SIGNAL( isPlaying( f_cnt_t ) ), m_waveView, SLOT( isPlaying( f_cnt_t ) ) );