vcl/source/window/toolbox2.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 36aae493d83183d7925c37c1ed42510b96a39905
Author: Parth Raiyani <[email protected]>
AuthorDate: Wed Apr 2 12:52:25 2025 +0530
Commit: Szymon Kłos <[email protected]>
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 <[email protected]>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184017
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <[email protected]>
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))