diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 6 | ||||
-rw-r--r-- | gui/mapping-window.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 51e22861..6a7be89f 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -115,17 +115,17 @@ MainWindow::MainWindow() : // dylibs { connect(&m.tracker_dll, - static_cast<void(base_value::*)(const QString&) const>(&base_value::valueChanged), + base_value::signal_fun<QString>(), this, [&](const QString&) { if (pTrackerDialog) pTrackerDialog = nullptr; save_modules(); }); connect(&m.protocol_dll, - static_cast<void(base_value::*)(const QString&) const>(&base_value::valueChanged), + base_value::signal_fun<QString>(), this, [&](const QString&) { if (pProtocolDialog) pProtocolDialog = nullptr; save_modules(); }); connect(&m.filter_dll, - static_cast<void(base_value::*)(const QString&) const>(&base_value::valueChanged), + base_value::signal_fun<QString>(), this, [&](const QString&) { if (pFilterDialog) pFilterDialog = nullptr; save_modules(); }); } diff --git a/gui/mapping-window.cpp b/gui/mapping-window.cpp index 0d2c9fbb..127929fe 100644 --- a/gui/mapping-window.cpp +++ b/gui/mapping-window.cpp @@ -109,14 +109,14 @@ void MapWidget::load() if (altp) { connect(&axis.opts.altp, - static_cast<void(base_value::*)(bool) const>(&base_value::valueChanged), + base_value::signal_fun<bool>(), this, [&](bool f) -> void {qfc.setEnabled(f); qfc.force_redraw();}); qfc.setEnabled(axis.opts.altp); qfc.force_redraw(); } - connect(&axis.opts.clamp, static_cast<void(base_value::*)(int) const>(&base_value::valueChanged), + connect(&axis.opts.clamp, base_value::signal_fun<int>(), &qfc, [i, &conf, &qfc](int value) { conf.set_max_input(value); qfc.reload_spline(); |