diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:42 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:42 +0100 |
commit | 33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e (patch) | |
tree | 1a2611949457d8c38741c6b60350c408eb59bbd6 /src/tabhighlighteffect.cpp | |
parent | update INSTALL file (diff) | |
parent | Workaround the troubles with the tabbar highlight feature. (diff) | |
download | rekonq-33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e.tar.xz |
Merge branch 'fixes'
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); |