Merge pull request #1861 from softrabbit/view_menu
Added toggle for smooth scrolling in song editor to view menu
This commit is contained in:
@@ -1079,13 +1079,12 @@ void MainWindow::updateViewMenu()
|
||||
*/
|
||||
|
||||
// Should be doable.
|
||||
/* qa = new QAction(tr( "Smooth scroll" ), this);
|
||||
qa = new QAction(tr( "Smooth scroll" ), this);
|
||||
qa->setData("smoothscroll");
|
||||
qa->setCheckable( true );
|
||||
qa->setChecked( ConfigManager::inst()->value( "ui", "smoothscroll" ).
|
||||
toInt() ? true : false );
|
||||
m_viewMenu->addAction(qa);
|
||||
*/
|
||||
|
||||
// Not yet.
|
||||
/* qa = new QAction(tr( "One instrument track window" ), this);
|
||||
|
||||
@@ -555,6 +555,7 @@ void SongEditor::updatePosition( const MidiTime & _t )
|
||||
&& m_timeLine->autoScroll() == TimeLineWidget::AutoScrollEnabled) ||
|
||||
m_scrollBack == true )
|
||||
{
|
||||
m_smoothScroll = ConfigManager::inst()->value( "ui", "smoothscroll" ).toInt();
|
||||
const int w = width() - widgetWidth
|
||||
- trackOpWidth
|
||||
- contentWidget()->verticalScrollBar()->width(); // width of right scrollbar
|
||||
|
||||
Reference in New Issue
Block a user