From 1db211ef0cc6a7bc171f952126cbcf88d6cb50bb Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Tue, 21 Feb 2012 19:56:50 +0800 Subject: [PATCH] Add tooltip for the quick buttons on the tabbar Well, maybe this is more helpful than annoying for Konsole users. --- src/ViewContainer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp index 160401091..0a81dbbc9 100644 --- a/src/ViewContainer.cpp +++ b/src/ViewContainer.cpp @@ -459,10 +459,12 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject* // The 'new tab' and 'close tab' button _newTabButton = new QToolButton(_containerWidget); _newTabButton->setIcon(KIcon("tab-new")); + _newTabButton->setToolTip(i18n("Open a new tab")); _newTabButton->adjustSize(); _closeTabButton = new QToolButton(_containerWidget); _closeTabButton->setIcon(KIcon("tab-close")); + _closeTabButton->setToolTip(i18n("Close the current tab")); _closeTabButton->adjustSize(); // 'new tab' button is initially hidden. It will be shown when setFeatures()