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

New commits:
commit 777f21f6e3bdf1ef48816b8810f4479536f52976
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: Fri Apr 4 15:07:01 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/+/183456
    (cherry picked from commit 29c3b58db410276b5610ac2e6bbbedfeeb959c55)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183618
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.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