Skip to content

Commit

Permalink
"misc" view now shows the model state, of the track use of master pit…
Browse files Browse the repository at this point in the history
…ch (#3753)

[cherry-picked from master]
  • Loading branch information
serdnab authored and zonkmachine committed Aug 15, 2017
1 parent a602bf9 commit 94646e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/InstrumentMidiIOView.h
Expand Up @@ -72,6 +72,11 @@ class InstrumentMiscView : public QWidget
InstrumentMiscView( InstrumentTrack *it, QWidget* parent );
~InstrumentMiscView();

GroupBox * pitchGroupBox()
{
return m_pitchGroupBox;
}

private:

GroupBox * m_pitchGroupBox;
Expand Down
1 change: 1 addition & 0 deletions include/InstrumentTrack.h
Expand Up @@ -27,6 +27,7 @@
#define INSTRUMENT_TRACK_H

#include "AudioPort.h"
#include "GroupBox.h"
#include "InstrumentFunctions.h"
#include "InstrumentSoundShaping.h"
#include "MidiEventProcessor.h"
Expand Down
1 change: 1 addition & 0 deletions src/tracks/InstrumentTrack.cpp
Expand Up @@ -1575,6 +1575,7 @@ void InstrumentTrackWindow::modelChanged()
m_arpeggioView->setModel( &m_track->m_arpeggio );
m_midiView->setModel( &m_track->m_midiPort );
m_effectView->setModel( m_track->m_audioPort.effects() );
m_miscView->pitchGroupBox()->setModel(&m_track->m_useMasterPitchModel);
updateName();
}

Expand Down

0 comments on commit 94646e2

Please sign in to comment.