diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-04 22:05:11 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-04 23:34:59 +0200 |
commit | 3e65dc7fca392489cd2ed2ed17da70cae39da89b (patch) | |
tree | e97b0d569162a0f22935e283b80b89e6113c9d84 | |
parent | b83719abf070626357646e77d96e61bd8d6cdce9 (diff) |
add a VclFrame::get_label
Change-Id: I1fd7dd198345167e587353d370a0ef055221962f
-rw-r--r-- | include/vcl/layout.hxx | 1 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 9c46acd375e3..e5fd00436e13 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -463,6 +463,7 @@ public: { } void set_label(const OUString &rLabel); + OUString get_label() const; virtual Window *get_child(); virtual const Window *get_child() const; Window *get_label_widget(); diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index dfdef8f9407d..bdae0fcd3ec5 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -1323,6 +1323,13 @@ void VclFrame::set_label(const OUString &rLabel) pLabel->SetText(rLabel); } +OUString VclFrame::get_label() const +{ + const Window *pLabel = get_label_widget(); + assert(pLabel); + return pLabel->GetText(); +} + OUString VclFrame::getDefaultAccessibleName() const { const Window *pLabel = get_label_widget(); |