diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-13 09:11:34 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-13 09:16:46 +0100 |
commit | e746cf656d71b78216b65c3352a8441829bbf6db (patch) | |
tree | 9094247f4378c47b2a7277c4a66f16879c0c1f9d /vcl/source/window/toolbox2.cxx | |
parent | 617c72c1516417da0134859e0a8818ce1e0bf60a (diff) |
Vcl: Add TooltipLabel to vcl buttons also
Change-Id: I332041e2d1d53f56cd38c1cd1ca325252535a53c
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index b2b6adf2e969..0efb1f8cfa85 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -606,7 +606,8 @@ void ToolBox::InsertItem(const OUString& rCommand, const uno::Reference<frame::X uno::Reference<frame::XModuleManager2> xModuleManager(frame::ModuleManager::create(xContext)); OUString aModuleId(xModuleManager->identify(rFrame)); - OUString aLabel(VclBuilder::getCommandLabel(rCommand, xContext, aModuleId)); + OUString aLabel(VclBuilder::getCommandProperty("Label", rCommand, xContext, aModuleId)); + OUString aTooltip(VclBuilder::getCommandProperty("TooltipLabel", rCommand, xContext, aModuleId)); Image aImage(VclBuilder::getCommandImage(rCommand, (GetToolboxButtonSize() == TOOLBOX_BUTTONSIZE_LARGE), xContext, rFrame, aModuleId)); // let's invent an ItemId @@ -615,6 +616,7 @@ void ToolBox::InsertItem(const OUString& rCommand, const uno::Reference<frame::X InsertItem(nItemId, aImage, aLabel, nBits, nPos); SetItemCommand(nItemId, rCommand); + SetQuickHelpText(nItemId, aTooltip); // set the minimal size ImplToolItem* pItem = ImplGetItem( nItemId ); |