Group methods are now updated when devices are added/removed, when a group has been edited. Note: Group methods will not be updated if a child device has its type changed or if a child group has its methods changed.
This commit is contained in:
parent
8aeebf4de5
commit
a69f11df8f
4 changed files with 6 additions and 3 deletions
|
@ -81,6 +81,9 @@ QString &Device::name() const {
|
|||
}
|
||||
|
||||
void Device::setParameter( const QString &name, const QString &value ) {
|
||||
if(name == "devices"){
|
||||
d->protocolChanged = true;
|
||||
}
|
||||
d->settings[name] = value;
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ MethodWidget::MethodWidget( Device *device, QWidget *parent )
|
|||
connect(d->execute, SIGNAL(clicked()), device, SLOT(execute()));
|
||||
connect(d->up, SIGNAL(clicked()), device, SLOT(up()));
|
||||
connect(d->down, SIGNAL(clicked()), device, SLOT(down()));
|
||||
connect(d->stop, SIGNAL(clicked()), device, SLOT(stop()));
|
||||
//TODO connect(d->stop, SIGNAL(clicked()), device, SLOT(stop()));
|
||||
|
||||
|
||||
updateMethods(device->methods());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue