vcl/source/window/toolbox2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 29c3b58db410276b5610ac2e6bbbedfeeb959c55
Author:     Parth Raiyani <[email protected]>
AuthorDate: Wed Apr 2 12:52:25 2025 +0530
Commit:     Szymon Kłos <[email protected]>
CommitDate: Wed Apr 2 12:00:01 2025 +0200

    fix: added tooltip property to ToolBox items in DumpAsPropertyTree
    
    Change-Id: Ie58b40df116d90253aca9d51061e5af92a0a61f3
    Signed-off-by: Parth Raiyani <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183456
    Reviewed-by: Szymon Kłos <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 359813c13662..b54dbf3dd895 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1729,6 +1729,8 @@ void ToolBox::DumpAsPropertyTree(tools::JsonWriter& 
rJsonWriter)
             rJsonWriter.put("type", "toolitem");
             rJsonWriter.put("text", GetItemText(nId));
             rJsonWriter.put("command", sCommand);
+            if (const OUString tooltip = GetQuickHelpText(nId); 
!tooltip.isEmpty())
+                rJsonWriter.put("tooltip", tooltip);
             if (IsItemChecked(nId))
                 rJsonWriter.put("selected", true);
             if (!IsItemVisible(nId))

Reply via email to