diff --git a/src/widget/form/settings/avform.cpp b/src/widget/form/settings/avform.cpp index b650a202a..233e0a206 100644 --- a/src/widget/form/settings/avform.cpp +++ b/src/widget/form/settings/avform.cpp @@ -238,3 +238,23 @@ void AVForm::onFilterAudioToggled(bool filterAudio) { Settings::getInstance().setFilterAudio(filterAudio); } + +void AVForm::on_HueSlider_valueChanged(int value) +{ + Camera::getInstance()->setProp(Camera::HUE, value / 100.0); +} + +void AVForm::on_BrightnessSlider_valueChanged(int value) +{ + Camera::getInstance()->setProp(Camera::BRIGHTNESS, value / 100.0); +} + +void AVForm::on_SaturationSlider_valueChanged(int value) +{ + Camera::getInstance()->setProp(Camera::SATURATION, value / 100.0); +} + +void AVForm::on_ContrastSlider_valueChanged(int value) +{ + Camera::getInstance()->setProp(Camera::CONTRAST, value / 100.0); +} diff --git a/src/widget/form/settings/avform.h b/src/widget/form/settings/avform.h index 2c6cb61aa..5f0d95872 100644 --- a/src/widget/form/settings/avform.h +++ b/src/widget/form/settings/avform.h @@ -61,6 +61,14 @@ private slots: virtual void hideEvent(QHideEvent*); virtual void showEvent(QShowEvent*); + void on_HueSlider_valueChanged(int value); + + void on_BrightnessSlider_valueChanged(int value); + + void on_SaturationSlider_valueChanged(int value); + + void on_ContrastSlider_valueChanged(int value); + private: Ui::AVSettings *bodyUI; VideoSurface* camView;