Don't display resize cursor for non-resizable TCOs

This commit is contained in:
Daniel Winzen committed 2015-01-06 18:18:16 +01:00
1 parent e2e8537b1d
commit 7440794597
10 files changed
+77 -20

No files matched your search

+10
View File
@@ -62,6 +62,16 @@ 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:
setAutoResize( false );
break;
}
}