Minor refactorings and codestyle cleanup.
This commit is contained in:
@@ -137,7 +137,8 @@ public:
|
||||
|
||||
static int stepsPerTact()
|
||||
{
|
||||
return qMax( 1, ticksPerTact() / DefaultBeatsPerTact );
|
||||
int steps = ticksPerTact() / DefaultBeatsPerTact;
|
||||
return qMax( 1, steps );
|
||||
}
|
||||
|
||||
static void setTicksPerTact( tick_t _tpt )
|
||||
|
||||
@@ -91,9 +91,9 @@ public:
|
||||
virtual ~Note();
|
||||
|
||||
// used by GUI
|
||||
inline void setSelected( const bool _selected ){ m_selected = _selected; }
|
||||
inline void setOldKey( const int _oldKey ){ m_oldKey = _oldKey; }
|
||||
inline void setOldPos( const MidiTime & _oldPos ){ m_oldPos = _oldPos; }
|
||||
inline void setSelected( const bool _selected ) { m_selected = _selected; }
|
||||
inline void setOldKey( const int _oldKey ) { m_oldKey = _oldKey; }
|
||||
inline void setOldPos( const MidiTime & _oldPos ) { m_oldPos = _oldPos; }
|
||||
inline void setOldLength( const MidiTime & _oldLength )
|
||||
{
|
||||
m_oldLength = _oldLength;
|
||||
|
||||
@@ -341,7 +341,7 @@ private:
|
||||
volume_t m_lastNoteVolume;
|
||||
panning_t m_lastNotePanning;
|
||||
|
||||
int m_startKey; // first key when drawing
|
||||
int m_startKey; // first key when drawing
|
||||
int m_lastKey;
|
||||
|
||||
editModes m_editMode;
|
||||
|
||||
Reference in New Issue
Block a user