diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-02-29 17:46:30 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-03-01 09:52:54 +0000 |
commit | 3ff17bda5ba3e627e9b996506dc72b68cf67483b (patch) | |
tree | 3428cbbab72fa834cbc5374ab0e220727876ed5f /framework/source | |
parent | 8bac7e410adfb991ba847a2ca94400b3e655d1b1 (diff) |
tdf#98277 Extensions: Display shortcut in toolbar tooltip
Change-Id: Icc16860d8b47a3724838fdb3dcb72dfb4398167d
Reviewed-on: https://gerrit.libreoffice.org/22779
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/addonstoolbarmanager.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx index afe155196e03..a7391d17f11c 100644 --- a/framework/source/uielement/addonstoolbarmanager.cxx +++ b/framework/source/uielement/addonstoolbarmanager.cxx @@ -255,6 +255,9 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue } bAppendSeparator = false; + OUString aShortcut(vcl::CommandInfoProvider::Instance().GetCommandShortcut(aURL, m_xFrame)); + if (!aShortcut.isEmpty()) + aTitle += " (" + aShortcut + ")"; m_pToolBar->InsertItem( nId, aTitle ); // don't setup images yet, AddonsToolbarWrapper::populateImages does that. |