From ae58104b91693b0b1d7404b5fe7600d6c157a5ce Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 13 Mar 2011 16:29:59 +0100 Subject: 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 --- src/tabbar.cpp | 8 ++++++++ src/tabbar.h | 2 ++ 2 files changed, 10 insertions(+) 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(); -- cgit v1.2.1