From 342875c97a19e4220d49b1e800b4d9210a9a0bd0 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 3 Dec 2024 12:19:01 +0100 Subject: [PATCH] Core: Fix displaying tool tips for navigation buttons Change-Id: I90e6cf8160323e29e07844959508c9473fcccf09 Reviewed-by: David Schulz --- src/plugins/coreplugin/editortoolbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/editortoolbar.cpp b/src/plugins/coreplugin/editortoolbar.cpp index 75ca726ec9e..6b4147c8f2f 100644 --- a/src/plugins/coreplugin/editortoolbar.cpp +++ b/src/plugins/coreplugin/editortoolbar.cpp @@ -378,8 +378,8 @@ void EditorToolBar::setGoForwardMenu(QMenu *menu) void EditorToolBar::updateActionShortcuts() { d->m_closeEditorButton->setToolTip(ActionManager::command(Constants::CLOSE)->stringWithAppendedShortcut(Tr::tr("Close Document"))); - d->m_goBackAction->setToolTip(ActionManager::command(Constants::GO_BACK)->action()->toolTip()); - d->m_goForwardAction->setToolTip(ActionManager::command(Constants::GO_FORWARD)->action()->toolTip()); + d->m_goBackAction->setToolTip(ActionManager::command(Constants::GO_BACK)->stringWithAppendedShortcut(Tr::tr("Go Back"))); + d->m_goForwardAction->setToolTip(ActionManager::command(Constants::GO_FORWARD)->stringWithAppendedShortcut(Tr::tr("Go Forward"))); d->m_closeSplitButton->setToolTip(ActionManager::command(Constants::REMOVE_CURRENT_SPLIT)->stringWithAppendedShortcut(Tr::tr("Remove Split"))); }