Add tooltip for the quick buttons on the tabbar

Well, maybe this is more helpful than annoying for Konsole users.
This commit is contained in:
Jekyll Wu
2012-02-21 19:56:50 +08:00
parent 4e2eb4c109
commit 1db211ef0c

View File

@@ -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()