summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-01-19 09:16:06 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2021-01-20 11:23:38 +0100
commit04e2aa34303424456b9db46ab1300eb103f40a03 (patch)
treef2fd22c3d6b6cff4fd38f969dbc8055486742410 /vcl/source
parent61f5add790fad40b1e3f7a3a45b96d52f784f69c (diff)
jsdialog: dump radio groups
Change-Id: I64bb8c7c87a2d4f054c3f2c8e5ac28812230cf70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109613 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/button.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index f7bc3ba80f7f..5fd00612a1a5 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2879,6 +2879,14 @@ void RadioButton::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
{
Button::DumpAsPropertyTree(rJsonWriter);
rJsonWriter.put("checked", IsChecked());
+
+ OUString sGroupId;
+ std::vector<VclPtr<RadioButton>> aGroup = GetRadioButtonGroup();
+ for(auto& pButton : aGroup)
+ sGroupId += pButton->get_id();
+
+ if (!sGroupId.isEmpty())
+ rJsonWriter.put("group", sGroupId);
}
FactoryFunction RadioButton::GetUITestFactory() const