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

Bug: 396653
wilder
Carlos Alves 5 years ago committed by Kurt Hindenburg
parent 6878f437f1
commit 1cd475e2b9
  1. 2
      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();
});

Loading…
Cancel
Save