From 2508a1865bf393335b1bf674a8e1e7995a313b53 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Dec 2017 14:08:22 +0100 Subject: options: rename template --- gui/main-window.cpp | 6 +++--- gui/mapping-dialog.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gui') diff --git a/gui/main-window.cpp b/gui/main-window.cpp index b0f26cbe..637cbef5 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -162,9 +162,9 @@ MainWindow::MainWindow() : this, [&](const QString&) { if (pFilterDialog) pFilterDialog = nullptr; }); - connect(&m.tracker_dll, base_value::signal_fun(), this, &MainWindow::save_modules, Qt::QueuedConnection); - connect(&m.protocol_dll, base_value::signal_fun(), this, &MainWindow::save_modules, Qt::QueuedConnection); - connect(&m.filter_dll, base_value::signal_fun(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.tracker_dll, base_value::value_changed(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.protocol_dll, base_value::value_changed(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.filter_dll, base_value::value_changed(), this, &MainWindow::save_modules, Qt::QueuedConnection); tie_setting(m.tracker_dll, ui.iconcomboTrackerSource); tie_setting(m.protocol_dll, ui.iconcomboProtocol); diff --git a/gui/mapping-dialog.cpp b/gui/mapping-dialog.cpp index 607563a7..8d754b6b 100644 --- a/gui/mapping-dialog.cpp +++ b/gui/mapping-dialog.cpp @@ -116,7 +116,7 @@ void MapWidget::load() if (altp) { connect(&axis.opts.altp, - base_value::signal_fun(), + base_value::value_changed(), this, [&](bool f) -> void {qfc.setEnabled(f); qfc.force_redraw();}); qfc.setEnabled(axis.opts.altp); -- cgit v1.2.3