summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-24 12:33:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-24 17:01:46 +0100
commitd4ca173f2babde53c1d20f10e335244b092c5c97 (patch)
tree3050e4a14bbc827537ca6003b160a15488520784 /vcl/source/app
parent965f349952a90334c14a86ce1dd65711b73e8e85 (diff)
add set_buildable_name to enable distinguishing different instances
of widgets loaded from the same .ui snippet in the same dialog so ui-testing can identify the right one Change-Id: I2ecc7fd60ab891ae9f94971a3035585d4500f694 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106500 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 03f68e381163..c1421562d2c0 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -312,6 +312,8 @@ vcl::Font SalInstanceWidget::get_font() { return m_xWidget->GetPointFont(*m_xWid
OString SalInstanceWidget::get_buildable_name() const { return m_xWidget->get_id().toUtf8(); }
+void SalInstanceWidget::set_buildable_name(const OString& rId) { return m_xWidget->set_id(OUString::fromUtf8(rId)); }
+
void SalInstanceWidget::set_help_id(const OString& rId) { return m_xWidget->SetHelpId(rId); }
OString SalInstanceWidget::get_help_id() const { return m_xWidget->GetHelpId(); }