summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
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())
{