diff options
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index a474074b7d3d..6e8161631f6c 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -854,6 +854,16 @@ void VclFrame::setAllocation(const Size &rAllocation) setLayoutAllocation(*pChild, aChildPos, aAllocation); } +void VclFrame::set_label(const rtl::OUString &rLabel) +{ + //The label widget is the last (of two) children + Window *pChild = get_child(); + WindowImpl* pWindowImpl = ImplGetWindowImpl(); + Window *pLabel = pChild != pWindowImpl->mpLastChild ? pWindowImpl->mpLastChild : NULL; + assert(pLabel); + pLabel->SetText(rLabel); +} + Size VclAlignment::calculateRequisition() const { Size aRet(m_nLeftPadding + m_nRightPadding, |