Added system item support, support for RGBControlers with multiple item backends, and item settings widgets

This commit is contained in:
2020-05-05 22:29:43 +02:00
parent a761eb4317
commit 5fb9ca7cc0
56 changed files with 635 additions and 210 deletions

View File

@ -64,6 +64,8 @@ void ItemWidget::disable()
{
ui->checkBox->setEnabled(false);
ui->label->setEnabled(false);
ui->slider->setEnabled(false);
ui->pushButton_Remove->setEnabled(false);
}
bool ItemWidget::controles(const ItemData& relay)
@ -80,7 +82,7 @@ void ItemWidget::showSettingsDialog()
{
if(auto workingRelay = item_.lock())
{
ItemSettingsDialog dialog(workingRelay.get(), this);
ItemSettingsDialog dialog(workingRelay, this);
dialog.exec();
}
else disable();