diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-16 20:20:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-16 20:31:51 +0100 |
commit | 98d26079c57c873827beb2d00883547aa558e9a3 (patch) | |
tree | 01c5324db5017a274f701ce158b1be95a25668d9 | |
parent | cb82c96f859d6cfc5567b63d17c732fdd6c249b4 (diff) |
add and use VclExpander::[g|s]et_expanded
Change-Id: I3b4e0947e85a7f6d6533dd17f39542584087c68a
-rw-r--r-- | include/vcl/layout.hxx | 8 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 2 |
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 |