From cb84ae8badcab5bfe095e71cf4c0e33175e60817 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 7 Jan 2011 17:49:24 +0100 Subject: This GCI task adds a combobox with different settings to choice when hovering tabs: * tab preview (default one) * show title as tooltip * show url as tooltip * show nothing Patch by Furkan Uzumcu, reviewed (and merged) by adjam BUG:260343 RB:100282 --- src/tabbar.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/tabbar.cpp') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 286d7d45..57124979 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -54,7 +54,6 @@ #include #include - #define BASE_WIDTH_DIVISOR 4 #define MIN_WIDTH_DIVISOR 8 @@ -220,7 +219,7 @@ void TabBar::mouseMoveEvent(QMouseEvent *event) KTabBar::mouseMoveEvent(event); - if (ReKonfig::alwaysShowTabPreviews()) + if (ReKonfig::hoveringTabOption() == 0) { //Find the tab under the mouse int i = 0; @@ -262,7 +261,7 @@ void TabBar::mouseMoveEvent(QMouseEvent *event) void TabBar::leaveEvent(QEvent *event) { - if (ReKonfig::alwaysShowTabPreviews()) + if (ReKonfig::hoveringTabOption() == 0) { //if leave tabwidget then hide previous tab preview if (!m_previewPopup.isNull()) @@ -278,7 +277,7 @@ void TabBar::leaveEvent(QEvent *event) void TabBar::mousePressEvent(QMouseEvent *event) { - if (ReKonfig::alwaysShowTabPreviews()) + if (ReKonfig::hoveringTabOption() == 0) { if (!m_previewPopup.isNull()) { @@ -355,7 +354,7 @@ void TabBar::mouseReleaseEvent(QMouseEvent *event) void TabBar::tabRemoved(int /*index*/) { - if (ReKonfig::alwaysShowTabPreviews()) + if (ReKonfig::hoveringTabOption() == 0) { if (!m_previewPopup.isNull()) { -- cgit v1.2.1