diff --git a/client/simulators/test.cpp b/client/simulators/test.cpp index f1818e0..7c92962 100644 --- a/client/simulators/test.cpp +++ b/client/simulators/test.cpp @@ -15,6 +15,7 @@ Test_Sim::Test_Sim(Web_socket_wrapper *web_socket, QWidget *parent) push_ui_item(ui->dial); push_ui_item(ui->thermo); push_ui_item(ui->led); + push_ui_item(ui->checkBox); } Test_Sim::~Test_Sim() diff --git a/client/simulators/test.ui b/client/simulators/test.ui index e309743..4b2df7a 100644 --- a/client/simulators/test.ui +++ b/client/simulators/test.ui @@ -94,6 +94,13 @@ + + + + CheckBox + + + diff --git a/server/simulators/test_sim.cpp b/server/simulators/test_sim.cpp index 0b082f0..52f9dc5 100644 --- a/server/simulators/test_sim.cpp +++ b/server/simulators/test_sim.cpp @@ -57,6 +57,7 @@ void Test_Sim::button_clicked(UI_button *id) this->m_button.set_text(state ? "On" : "Off"); this->m_led.set_bg_color(state ? Color::Green : Color::Red); + this->m_checkbox.set_state(state); return; } }