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/tabhighlighteffect.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/tabhighlighteffect.cpp')
-rw-r--r-- | src/tabhighlighteffect.cpp | 3 |
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); |