InstrumentTrack: renamed getPiano() to pianoModel()
Renamed getPiano() to pianoModel() to better express what this function does. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
||||
return &m_midiPort;
|
||||
}
|
||||
|
||||
Piano * getPiano( void )
|
||||
Piano * pianoModel( void )
|
||||
{
|
||||
return &m_piano;
|
||||
}
|
||||
|
||||
@@ -910,7 +910,7 @@ void pianoRoll::keyPressEvent( QKeyEvent * _ke )
|
||||
if( _ke->isAutoRepeat() == false && key_num > -1 )
|
||||
{
|
||||
m_pattern->getInstrumentTrack()->
|
||||
getPiano()->handleKeyPress( key_num );
|
||||
pianoModel()->handleKeyPress( key_num );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1216,7 +1216,7 @@ void pianoRoll::keyReleaseEvent( QKeyEvent * _ke )
|
||||
if( _ke->isAutoRepeat() == false && key_num > -1 )
|
||||
{
|
||||
m_pattern->getInstrumentTrack()->
|
||||
getPiano()->handleKeyRelease( key_num );
|
||||
pianoModel()->handleKeyRelease( key_num );
|
||||
}
|
||||
}
|
||||
switch( _ke->key() )
|
||||
|
||||
Reference in New Issue
Block a user