summaryrefslogtreecommitdiff
path: root/src/tabhighlighteffect.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-21 22:40:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-21 22:40:42 +0100
commit33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e (patch)
tree1a2611949457d8c38741c6b60350c408eb59bbd6 /src/tabhighlighteffect.cpp
parentupdate INSTALL file (diff)
parentWorkaround the troubles with the tabbar highlight feature. (diff)
downloadrekonq-33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e.tar.xz
Merge branch 'fixes'
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);