Update TimeLineWidget 60 times per second (#4703)

In addition to #4570.
This commit is contained in:
Karmo Rosental
2018-11-09 09:20:38 +02:00
committed by Hyunjin Song
parent 86f9a75d98
commit a8828d332c

View File

@@ -93,7 +93,7 @@ TimeLineWidget::TimeLineWidget( const int xoff, const int yoff, const float ppt,
QTimer * updateTimer = new QTimer( this );
connect( updateTimer, SIGNAL( timeout() ),
this, SLOT( updatePosition() ) );
updateTimer->start( 50 );
updateTimer->start( 1000 / 60 ); // 60 fps
connect( Engine::getSong(), SIGNAL( timeSignatureChanged( int,int ) ),
this, SLOT( update() ) );
}