diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:26:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:25 +0100 |
commit | 8946eecd22b4810dea452dafa4e0e2f8e55c573c (patch) | |
tree | 34afbfa1d441165ada729a30767838fa2a2c4979 /src/tabbar.cpp | |
parent | Really hiding the tabbar... (diff) | |
download | rekonq-8946eecd22b4810dea452dafa4e0e2f8e55c573c.tar.xz |
Workaround the troubles with the tabbar highlight feature.
Another fantastic patch by Johannes Trosher. Thanks :)
CCBUG:267234
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 557fae96..1ab357f2 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -365,15 +365,6 @@ void TabBar::tabRemoved(int index) if (ReKonfig::animatedTabHighlighting()) removeAnimation(index); - - m_tabHighlightEffect->update(); -} - - -void TabBar::tabInserted(int index) -{ - Q_UNUSED(index); - m_tabHighlightEffect->update(); } @@ -424,8 +415,9 @@ void TabBar::setTabHighlighted(int index) if (tabTextColor(index) != highlightColor) { - if (ReKonfig::animatedTabHighlighting) + if (ReKonfig::animatedTabHighlighting()) { + m_tabHighlightEffect->setEnabled(true); m_tabHighlightEffect->setProperty(propertyName, qreal(0.9)); QPropertyAnimation *anim = new QPropertyAnimation(m_tabHighlightEffect, propertyName); m_highlightAnimation.insert(propertyName, anim); @@ -463,6 +455,9 @@ void TabBar::removeAnimation(int index) QPropertyAnimation *anim = m_highlightAnimation.take(propertyName); m_animationMapper->removeMappings(anim); delete anim; + + if (m_highlightAnimation.isEmpty()) + m_tabHighlightEffect->setEnabled(false); } |