From 1cd475e2b97593e9ead8c6d95a1d1d85ca9c1773 Mon Sep 17 00:00:00 2001 From: Carlos Alves Date: Thu, 29 Oct 2020 07:36:08 -0300 Subject: [PATCH] Add "New Tab" and "Close Tab" buttons a tool tip Bug: 396653 --- src/widgets/ViewContainer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/ViewContainer.cpp b/src/widgets/ViewContainer.cpp index dc67b65c..7b24b3f9 100644 --- a/src/widgets/ViewContainer.cpp +++ b/src/widgets/ViewContainer.cpp @@ -70,10 +70,12 @@ TabbedViewContainer::TabbedViewContainer(ViewManager *connectedViewManager, QWid tabBar()->setContextMenuPolicy(Qt::CustomContextMenu); _newTabButton->setIcon(QIcon::fromTheme(QStringLiteral("tab-new"))); _newTabButton->setAutoRaise(true); + _newTabButton->setToolTip(i18nc("@info:tooltip", "Open a new tab")); connect(_newTabButton, &QToolButton::clicked, this, &TabbedViewContainer::newViewRequest); _closeTabButton->setIcon(QIcon::fromTheme(QStringLiteral("tab-close"))); _closeTabButton->setAutoRaise(true); + _closeTabButton->setToolTip(i18nc("@info:tooltip", "Close this tab")); connect(_closeTabButton, &QToolButton::clicked, this, [this]{ closeCurrentTab(); });