summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-06 18:34:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-10 10:31:58 +0200
commit61884594ceff59279abe5530c8c1af1870dc8fbb (patch)
treec896d862a5dee2ea1647ab9f68961381339fc669 /video-ps3eye
parent4ad996e116e78dd5f03c1ec47df2d380f6e23a68 (diff)
Revert "options/value: add `QObject::connect` wrapper"
This reverts commit a67e8630caf20e7f48151024e9e68dd9271d75c7.
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/module.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp
index 04e7ecbe..02543082 100644
--- a/video-ps3eye/module.cpp
+++ b/video-ps3eye/module.cpp
@@ -266,9 +266,8 @@ dialog::dialog(QWidget* parent) : QWidget(parent)
tie_setting(s.gain, ui.gain_slider);
ui.exposure_label->setValue((int)*s.exposure);
ui.gain_label->setValue((int)*s.gain);
- s.exposure.connect_to(this, [this] { t.stop(); t.start(); });
- s.gain.connect_to(this, [this] { t.stop(); t.start(); });
-
+ connect(&s.exposure, value_::value_changed<slider_value>(), this, [this](const slider_value&) { t.stop(); t.start(); });
+ connect(&s.gain, value_::value_changed<slider_value>(), this, [this](const slider_value&) { t.stop(); t.start(); });
connect(ui.exposure_slider, &QSlider::valueChanged, ui.exposure_label, &QSpinBox::setValue);
connect(ui.gain_slider, &QSlider::valueChanged, ui.gain_label, &QSpinBox::setValue);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &dialog::do_ok);