forked from qt-creator/qt-creator
Core: Fix displaying tool tips for navigation buttons
Change-Id: I90e6cf8160323e29e07844959508c9473fcccf09 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -378,8 +378,8 @@ void EditorToolBar::setGoForwardMenu(QMenu *menu)
|
|||||||
void EditorToolBar::updateActionShortcuts()
|
void EditorToolBar::updateActionShortcuts()
|
||||||
{
|
{
|
||||||
d->m_closeEditorButton->setToolTip(ActionManager::command(Constants::CLOSE)->stringWithAppendedShortcut(Tr::tr("Close Document")));
|
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_goBackAction->setToolTip(ActionManager::command(Constants::GO_BACK)->stringWithAppendedShortcut(Tr::tr("Go Back")));
|
||||||
d->m_goForwardAction->setToolTip(ActionManager::command(Constants::GO_FORWARD)->action()->toolTip());
|
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")));
|
d->m_closeSplitButton->setToolTip(ActionManager::command(Constants::REMOVE_CURRENT_SPLIT)->stringWithAppendedShortcut(Tr::tr("Remove Split")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user