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:
Tobias Doerffel
2009-06-11 13:58:45 +02:00
parent e76991ffea
commit 01a83deee7
2 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ public:
return &m_midiPort;
}
Piano * getPiano( void )
Piano * pianoModel( void )
{
return &m_piano;
}

View File

@@ -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() )