summaryrefslogtreecommitdiff
path: root/src/tabhighlighteffect.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-21 22:26:48 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-21 22:40:25 +0100
commit8946eecd22b4810dea452dafa4e0e2f8e55c573c (patch)
tree34afbfa1d441165ada729a30767838fa2a2c4979 /src/tabhighlighteffect.cpp
parentReally hiding the tabbar... (diff)
downloadrekonq-8946eecd22b4810dea452dafa4e0e2f8e55c573c.tar.xz
Workaround the troubles with the tabbar highlight feature.
Another fantastic patch by Johannes Trosher. Thanks :) CCBUG:267234
Diffstat (limited to 'src/tabhighlighteffect.cpp')
-rw-r--r--src/tabhighlighteffect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tabhighlighteffect.cpp b/src/tabhighlighteffect.cpp
index b2d1e0df..b92017cf 100644
--- a/src/tabhighlighteffect.cpp
+++ b/src/tabhighlighteffect.cpp
@@ -63,6 +63,9 @@ void TabHighlightEffect::draw(QPainter *painter)
qreal opacity = property(propertyName).toReal();
QRect textRect = m_tabBar->tabTextRect(index);
+ if (!boundingRect().contains(textRect))
+ continue;
+
QString tabText = m_tabBar->fontMetrics().elidedText(m_tabBar->tabText(index), Qt::ElideRight,
textRect.width(), Qt::TextShowMnemonic);