summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-13 16:29:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-13 16:29:59 +0100
commitae58104b91693b0b1d7404b5fe7600d6c157a5ce (patch)
tree5a61b4a45b799f689ba6aff08b35ca3f70d7f460 /src
parentRevert "Return false for null mimetypes" (diff)
downloadrekonq-ae58104b91693b0b1d7404b5fe7600d6c157a5ce.tar.xz
This commit to try fixing all troubles against the tabbar highlight feature.
Courtesy fix patch from the man implementing the feature: Johannes Troscher. Many Thanks for. Bug Reporters: please, let us know if this really fix it! CCBUG:267234
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp8
-rw-r--r--src/tabbar.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 9b1ca66a..118bba45 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -362,6 +362,14 @@ void TabBar::tabRemoved(int index)
}
removeAnimation(index);
+ m_tabHighlightEffect->update();
+}
+
+
+void TabBar::tabInserted(int index)
+{
+ Q_UNUSED(index);
+ m_tabHighlightEffect->update();
}
diff --git a/src/tabbar.h b/src/tabbar.h
index 39516fc0..58516f14 100644
--- a/src/tabbar.h
+++ b/src/tabbar.h
@@ -81,7 +81,9 @@ protected:
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void leaveEvent(QEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
+
virtual void tabRemoved(int index);
+ virtual void tabInserted(int index);
private slots:
void cloneTab();