X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=4e6ab75d9502b190e85e3823d839261fa36134f5;hp=9164c6e82ac0e330623ff8105db4a6c92a311d24;hb=9b64f2dfe9179f665ef97c0d0ac992274864f4a4;hpb=e6d42eec32b61b6831b7926a9d6a5cd03d1f3430 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 9164c6e8..4e6ab75d 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -86,8 +86,6 @@ MainWindow::MainWindow(DeviceManager &device_manager, GlobalSettings::register_change_handler(GlobalSettings::Key_View_ColouredBG, bind(&MainWindow::on_settingViewColouredBg_changed, this, _1)); - GlobalSettings::register_change_handler(GlobalSettings::Key_View_StickyScrolling, - bind(&MainWindow::on_settingViewStickyScrolling_changed, this, _1)); setup_ui(); restore_ui_settings(); @@ -204,7 +202,6 @@ shared_ptr MainWindow::add_view(const QString &title, views::TraceView::View *tv = qobject_cast(v.get()); - tv->enable_sticky_scrolling(true); tv->enable_coloured_bg(settings.value(GlobalSettings::Key_View_ColouredBG).toBool()); if (!main_bar) { @@ -750,21 +747,6 @@ void MainWindow::on_settingViewColouredBg_changed(const QVariant new_value) } } -void MainWindow::on_settingViewStickyScrolling_changed(const QVariant new_value) -{ - bool state = new_value.toBool(); - - for (auto entry : view_docks_) { - shared_ptr viewbase = entry.second; - - // Only trace views have this setting - views::TraceView::View* view = - qobject_cast(viewbase.get()); - if (view) - view->enable_sticky_scrolling(state); - } -} - void MainWindow::on_close_current_tab() { int tab = session_selector_.currentIndex();