diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-01-19 09:16:06 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2021-04-09 17:39:31 +0100 |
commit | ad68a58140be9ff657e1e8ff091cf61002f5797e (patch) | |
tree | 36c66d1b4c3419a7f83d9a582080617659f863c7 | |
parent | 8fb1d1159c8b67032d3dc5d6c92fcb4c2b84b2b5 (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>
-rw-r--r-- | vcl/source/control/button.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index b2a7dc7cfdc2..9493454d00b9 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2858,6 +2858,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 |