summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-05-14 19:38:00 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-05-14 19:48:06 (GMT)
commiteec927bd887f1939dbc544df7d795a9cf282634d (patch)
treef9b40d19a8d1137b95eccfec1c5c01a7c21f0b72
parentb8b8ef7405e81dfcbe63e5a1b84cf773b6a36096 (diff)
Add "What's this" for the tabbar and new/close buttons
There could be more, but I thik they are the most important ones. BUG: 257914 FIXED-IN: 4.9.0
-rw-r--r--src/ViewContainer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp
index 8070bfb..c4b602d 100644
--- a/src/ViewContainer.cpp
+++ b/src/ViewContainer.cpp
@@ -266,6 +266,11 @@ ViewContainerTabBar::ViewContainerTabBar(QWidget* parent, TabbedViewContainer* c
setFocusPolicy(Qt::NoFocus);
setSelectionBehaviorOnRemove(QTabBar::SelectPreviousTab);
setElideMode(Qt::ElideLeft);
+
+ setWhatsThis(i18nc("@info:whatsthis",
+ "<title>Tab Bar</title>"
+ "<para>The tab bar allows you to switch and move tabs. You can double-click a tab to change its name.</para>"));
+
}
void ViewContainerTabBar::setDropIndicator(int index, bool drawDisabled)
{
@@ -456,11 +461,13 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject*
_newTabButton = new QToolButton(_containerWidget);
_newTabButton->setIcon(KIcon("tab-new"));
_newTabButton->setToolTip(i18nc("@info:tooltip", "Create new tab"));
+ _newTabButton->setWhatsThis(i18nc("@info:whatsthis", "Create a new tab. Press and hold to select profile from menu"));
_newTabButton->adjustSize();
_closeTabButton = new QToolButton(_containerWidget);
_closeTabButton->setIcon(KIcon("tab-close"));
- _closeTabButton->setToolTip(i18nc("@info:tooltip", "Close current tab"));
+ _closeTabButton->setToolTip(i18nc("@info:tooltip", "Close tab"));
+ _closeTabButton->setWhatsThis(i18nc("@info:whatsthis", "Close the active tab"));
_closeTabButton->adjustSize();
// 'new tab' button is initially hidden. It will be shown when setFeatures()