include/vcl/layout.hxx | 8 ++++++++ vcl/source/window/layout.cxx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
New commits: commit 98d26079c57c873827beb2d00883547aa558e9a3 Author: Caolán McNamara <caol...@redhat.com> Date: Tue Jul 16 20:20:39 2013 +0100 add and use VclExpander::[g|s]et_expanded Change-Id: I3b4e0947e85a7f6d6533dd17f39542584087c68a diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index f72b93a..041f01b 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 462eba1f..0b8dbfa 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits