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

ComboTabBar: Fix drawing with correct selectedPosition

This commit is contained in:
David Rosca 2017-01-27 14:24:03 +01:00
parent 4e1a9079f3
commit 6525410e22

View File

@ -1151,6 +1151,10 @@ void TabBarHelper::paintEvent(QPaintEvent* event)
continue;
}
if (!m_activeTabBar) {
tab.selectedPosition = QStyleOptionTab::NotAdjacent;
}
if (!(tab.state & QStyle::State_Enabled)) {
tab.palette.setCurrentColorGroup(QPalette::Disabled);
}