diff --git a/UI/UI_slider.cpp b/UI/UI_slider.cpp index 6afc927..716cbec 100644 --- a/UI/UI_slider.cpp +++ b/UI/UI_slider.cpp @@ -37,7 +37,7 @@ void UI_slider::set_value(double value) this->m_value = value; emit value_changed(); - emit on_change(m_value); + emit changed(m_value); } double UI_slider::value() const diff --git a/UI/UI_slider.hpp b/UI/UI_slider.hpp index 2e47c58..f711e94 100644 --- a/UI/UI_slider.hpp +++ b/UI/UI_slider.hpp @@ -24,7 +24,7 @@ class UI_slider : public UI_item void from_json(const json &j) override; json to_json(size_t id) const override; signals: - void on_change(double value); + void changed(double value); private: double m_min; diff --git a/server/simulators/test_sim.cpp b/server/simulators/test_sim.cpp index ec303cf..db951d4 100644 --- a/server/simulators/test_sim.cpp +++ b/server/simulators/test_sim.cpp @@ -25,7 +25,7 @@ Test_Sim::Test_Sim(CAN_Wrapper *can_wrapper, QObject *parent) this->push_ui_item(&this->m_checkbox); QObject::connect(&m_button, &UI_button::clicked, this, [=, this] { button_clicked(&m_button); }); - QObject::connect(&m_slider, &UI_slider::on_change, this, + QObject::connect(&m_slider, &UI_slider::changed, this, [=, this](double value) { slider_changed(&m_slider, value); }); }