[ExpansionPanel] Possibility to disable the toggle button
This commit is contained in:
@@ -70,6 +70,13 @@ class ExpansionPanel: public FormGroup
|
|||||||
updateHeight();
|
updateHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setCloseAllowed(bool value = true)
|
||||||
|
{
|
||||||
|
if (value) {
|
||||||
|
header->disable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void enable(bool value = true)
|
void enable(bool value = true)
|
||||||
{
|
{
|
||||||
FormGroup::enable(value);
|
FormGroup::enable(value);
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ class ModalWindow: public Window
|
|||||||
}
|
}
|
||||||
#endif
|
#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;
|
void paint(BitmapBuffer * dc) override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user