Commit 1cd475e2 authored by Carlos Alves's avatar Carlos Alves Committed by Kurt Hindenburg
Browse files

Add "New Tab" and "Close Tab" buttons a tool tip

Bug: 396653
parent 6878f437
......@@ -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();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment