summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2022-07-21 23:56:42 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2022-08-10 08:28:18 +0200
commitc76857fe4e725834e6be9bd5b3273df95bf7fafd (patch)
tree42ea625d90263c62e0a00cc1935ca8466853cf08 /vcl/workben
parent085abe2b7187f2cfd69a5a1c6e84ef0c9c214f78 (diff)
Make ToolBox::InsertItem take the command name
For the next patch for tdf#149956 I need the command to be already set when the VclEventId::ToolboxItemAdded event is emitted. Change-Id: I3d8ce44b426a3ed5704d4520d6e62bc4efbf8e44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138038 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/vcldemo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 379901c01398..5cdfbcf8abd5 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1922,7 +1922,7 @@ public:
Help::EnableBalloonHelp();
mpToolbox->SetHelpText("Help text");
- mpToolbox->InsertItem(ToolBoxItemId(0), "Toolbar item");
+ mpToolbox->InsertItem(ToolBoxItemId(0), "Toolbar item", OUString());
mpToolbox->SetQuickHelpText(ToolBoxItemId(0), "This is a tooltip popup");
mpToolbox->InsertSeparator();
mpToolbox->Show();