BbTrack: replaced static numOfBBTrack() by proper index() method

This commit is contained in:
Tobias Doerffel
2014-03-30 12:23:10 +02:00
parent ebc11f8558
commit e924888eb6
3 changed files with 18 additions and 22 deletions

View File

@@ -58,6 +58,8 @@ public:
return qRgb( 128, 182, 175 );
}
int bbTrackIndex();
virtual trackContentObjectView * createView( trackView * _tv );
private:
@@ -122,9 +124,13 @@ public:
virtual void loadTrackSpecificSettings( const QDomElement & _this );
static bbTrack * findBBTrack( int _bb_num );
static int numOfBBTrack( track * _track );
static void swapBBTracks( track * _track1, track * _track2 );
int index()
{
return s_infoMap[this];
}
bool automationDisabled( track * _track )
{
return( m_disabledTracks.contains( _track ) );