mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
GCS - Make the save/apply operation result icons disappear when the form contents changes.
This commit is contained in:
parent
37975dc00a
commit
05ef028f9d
@ -412,6 +412,7 @@ void ConfigTaskWidget::widgetsContentsChanged()
|
||||
}
|
||||
}
|
||||
}
|
||||
smartsave->resetIcons();
|
||||
setDirty(true);
|
||||
}
|
||||
/**
|
||||
|
@ -192,6 +192,12 @@ void smartSaveButton::enableControls(bool value)
|
||||
button->setEnabled(value);
|
||||
}
|
||||
|
||||
void smartSaveButton::resetIcons()
|
||||
{
|
||||
foreach(QPushButton * button,buttonList.keys())
|
||||
button->setIcon(QIcon());
|
||||
}
|
||||
|
||||
void smartSaveButton::apply()
|
||||
{
|
||||
processOperation(NULL,false);
|
||||
|
@ -52,6 +52,7 @@ public:
|
||||
void removeAllObjects();
|
||||
void addApplyButton(QPushButton *apply);
|
||||
void addSaveButton(QPushButton *save);
|
||||
void resetIcons();
|
||||
signals:
|
||||
void preProcessOperations();
|
||||
void saveSuccessfull();
|
||||
|
Loading…
Reference in New Issue
Block a user