[Libreoffice-commits] core.git: vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 20 10:24:18 UTC 2021


 vcl/source/control/button.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 04e2aa34303424456b9db46ab1300eb103f40a03
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 19 09:16:06 2021 +0100
Commit:     Szymon Kłos <szymon.klos at 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.klos at 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


More information about the Libreoffice-commits mailing list