Added system item support, support for RGBControlers with multiple item backends, and item settings widgets
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user