summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-01-07 17:49:24 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-07 17:49:24 +0100
commitcb84ae8badcab5bfe095e71cf4c0e33175e60817 (patch)
treeb84bf5b9ea1ef4e8056d69647b286f5a6de0017e /src/tabbar.cpp
parentAdded a visit count parameter to the history. (diff)
downloadrekonq-cb84ae8badcab5bfe095e71cf4c0e33175e60817.tar.xz
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
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp9
1 files changed, 4 insertions, 5 deletions
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 <QtGui/QMouseEvent>
#include <QtGui/QToolButton>
-
#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())
{