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

New commits:
commit 36aae493d83183d7925c37c1ed42510b96a39905
Author:     Parth Raiyani <parth.raiy...@collabora.com>
AuthorDate: Wed Apr 2 12:52:25 2025 +0530
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Apr 14 06:36:53 2025 +0200

    fix: added tooltip property to ToolBox items in DumpAsPropertyTree
    
    Change-Id: Ie58b40df116d90253aca9d51061e5af92a0a61f3
    Signed-off-by: Parth Raiyani <parth.raiy...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184017
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 9bd4e5b69140..24cd01ed63df 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1739,6 +1739,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