1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

ComboTabBar: Set QStyleOptionTabBarBase::selectedTabRect

Closes #1389
This commit is contained in:
David Rosca 2017-01-27 14:06:06 +01:00
parent 6132bf7789
commit 4e1a9079f3

View File

@ -1127,7 +1127,9 @@ void TabBarHelper::paintEvent(QPaintEvent* event)
optTabBase.tabBarRect |= tabRect(i);
}
optTabBase.selectedTabRect = QRect();
if (m_activeTabBar) {
optTabBase.selectedTabRect = tabRect(selected);
}
if (drawBase()) {
p.drawPrimitive(QStyle::PE_FrameTabBarBase, optTabBase);