vcl/source/control/button.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 04e2aa34303424456b9db46ab1300eb103f40a03 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Jan 19 09:16:06 2021 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Wed Jan 20 11:23:38 2021 +0100 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.k...@collabora.com> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits