Merge pull request #1861 from softrabbit/view_menu

Added toggle for smooth scrolling in song editor to view menu
This commit is contained in:
Vesa V
2015-03-19 19:10:31 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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