summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/layout.hxx8
-rw-r--r--vcl/source/window/layout.cxx2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index f72b93a1cd37..041f01b3029d 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -516,6 +516,14 @@ public:
virtual Window *get_child();
virtual const Window *get_child() const;
virtual bool set_property(const OString &rKey, const OString &rValue);
+ bool get_expanded() const
+ {
+ return m_aDisclosureButton.IsChecked();
+ }
+ void set_expanded(bool bExpanded)
+ {
+ m_aDisclosureButton.Check(bExpanded);
+ }
virtual void StateChanged(StateChangedType nType);
protected:
virtual Size calculateRequisition() const;
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 462eba1f3c2d..0b8dbfaae4a7 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1460,7 +1460,7 @@ void VclExpander::setAllocation(const Size &rAllocation)
bool VclExpander::set_property(const OString &rKey, const OString &rValue)
{
if (rKey == "expanded")
- m_aDisclosureButton.Check(toBool(rValue));
+ set_expanded(toBool(rValue));
else if (rKey == "resize-toplevel")
m_bResizeTopLevel = toBool(rValue);
else