don't change sampleTco length if tempo changed (#3543)
This commit is contained in:
committed by
Umcaruje
parent
17b37e02a9
commit
69d09f0186
@@ -148,7 +148,7 @@ void SampleTCO::setSampleBuffer( SampleBuffer* sb )
|
||||
void SampleTCO::setSampleFile( const QString & _sf )
|
||||
{
|
||||
m_sampleBuffer->setAudioFile( _sf );
|
||||
updateLength();
|
||||
changeLength( (int) ( m_sampleBuffer->frames() / Engine::framesPerTick() ) );
|
||||
|
||||
emit sampleChanged();
|
||||
emit playbackPositionChanged();
|
||||
@@ -199,7 +199,7 @@ void SampleTCO::setIsPlaying(bool isPlaying)
|
||||
|
||||
void SampleTCO::updateLength()
|
||||
{
|
||||
changeLength( sampleLength() );
|
||||
emit sampleChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -505,12 +505,6 @@ void SampleTCOView::paintEvent( QPaintEvent * pe )
|
||||
// disable antialiasing for borders, since its not needed
|
||||
p.setRenderHint( QPainter::Antialiasing, false );
|
||||
|
||||
if( r.width() < width() - 1 )
|
||||
{
|
||||
p.drawLine( r.x(), r.y() + r.height() / 2,
|
||||
rect().right() - TCO_BORDER_WIDTH, r.y() + r.height() / 2 );
|
||||
}
|
||||
|
||||
// inner border
|
||||
p.setPen( c.lighter( 160 ) );
|
||||
p.drawRect( 1, 1, rect().right() - TCO_BORDER_WIDTH,
|
||||
|
||||
Reference in New Issue
Block a user