[ExpansionPanel] Possibility to disable the toggle button

This commit is contained in:
Bertrand Songis
2021-01-08 10:33:26 +01:00
parent be9595c161
commit d22d95fe9a
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -70,6 +70,13 @@ class ExpansionPanel: public FormGroup
updateHeight();
}
void setCloseAllowed(bool value = true)
{
if (value) {
header->disable();
}
}
void enable(bool value = true)
{
FormGroup::enable(value);
+1 -1
View File
@@ -33,7 +33,7 @@ class ModalWindow: public Window
}
#endif
void deleteLater(bool detach = true, bool trash = true) override;
void deleteLater(bool detach = true, bool trash = true) override; // NOLINT(google-default-arguments)
void paint(BitmapBuffer * dc) override;