mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Sim test
ID to label
This commit is contained in:
@@ -80,3 +80,16 @@ void Test_Sim::setup_dials(void)
|
||||
create_dial_needle(dial);
|
||||
}
|
||||
}
|
||||
|
||||
QLabel* Test_Sim::id_to_label(size_t id)
|
||||
{
|
||||
QWidget* widget = ui_lookup.at(id);
|
||||
if (widget == ui->slider)
|
||||
return ui->slider_label;
|
||||
if (widget == ui->thermo)
|
||||
return ui->thermo_label;
|
||||
if (widget == ui->dial)
|
||||
return ui->dial_label;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user