Merge pull request #1563 from DanWin/resize-cursor

Don't display resize cursor for non-resizable TCOs
This commit is contained in:
Tres Finocchiaro committed 2015-01-10 09:32:09 -05:00
commit 86c2673398
10 files changed
+85 -20

No files matched your search

+12
View File
@@ -62,6 +62,18 @@ SampleTCO::SampleTCO( Track * _track ) :
// change length of this TCO
connect( Engine::getSong(), SIGNAL( tempoChanged( bpm_t ) ),
this, SLOT( updateLength( bpm_t ) ) );
switch( getTrack()->trackContainer()->type() )
{
case TrackContainer::BBContainer:
setAutoResize( true );
break;
case TrackContainer::SongContainer:
// move down
default:
setAutoResize( false );
break;
}
}