mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
[ComboTabBar] Draw tabbar base even when main tabbar is empty
This commit is contained in:
parent
a30aac169a
commit
90760eaa2b
|
@ -673,6 +673,13 @@ void ComboTabBar::paintEvent(QPaintEvent* ev)
|
|||
opt.rect.setWidth(scrollButtonWidth);
|
||||
style()->drawPrimitive(QStyle::PE_FrameTabBarBase, &opt, &p);
|
||||
}
|
||||
|
||||
// Draw base even when main tabbar is empty
|
||||
if (normalTabsCount() == 0) {
|
||||
opt.rect.setX(m_mainTabBarWidget->x());
|
||||
opt.rect.setWidth(m_mainTabBarWidget->width());
|
||||
style()->drawPrimitive(QStyle::PE_FrameTabBarBase, &opt, &p);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1160,7 +1167,6 @@ void TabBarHelper::paintEvent(QPaintEvent* event)
|
|||
p.drawControl(QStyle::CE_TabBarTab, tb);
|
||||
|
||||
// Draw the tab without selected state
|
||||
|
||||
tab.state = tab.state & ~QStyle::State_Selected;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user