mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +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);
|
setDirty(true);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -192,6 +192,12 @@ void smartSaveButton::enableControls(bool value)
|
|||||||
button->setEnabled(value);
|
button->setEnabled(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void smartSaveButton::resetIcons()
|
||||||
|
{
|
||||||
|
foreach(QPushButton * button,buttonList.keys())
|
||||||
|
button->setIcon(QIcon());
|
||||||
|
}
|
||||||
|
|
||||||
void smartSaveButton::apply()
|
void smartSaveButton::apply()
|
||||||
{
|
{
|
||||||
processOperation(NULL,false);
|
processOperation(NULL,false);
|
||||||
|
@ -52,6 +52,7 @@ public:
|
|||||||
void removeAllObjects();
|
void removeAllObjects();
|
||||||
void addApplyButton(QPushButton *apply);
|
void addApplyButton(QPushButton *apply);
|
||||||
void addSaveButton(QPushButton *save);
|
void addSaveButton(QPushButton *save);
|
||||||
|
void resetIcons();
|
||||||
signals:
|
signals:
|
||||||
void preProcessOperations();
|
void preProcessOperations();
|
||||||
void saveSuccessfull();
|
void saveSuccessfull();
|
||||||
|
Loading…
Reference in New Issue
Block a user