mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[ComboTabBar] Fixed pinned tabs being hidden when there are no normal tabs
This commit is contained in:
parent
e6f4853af7
commit
a30aac169a
|
@ -535,7 +535,8 @@ void ComboTabBar::setUpLayout()
|
||||||
|
|
||||||
if (isVisible() && m_mainTabBar->count() > 0) {
|
if (isVisible() && m_mainTabBar->count() > 0) {
|
||||||
// ComboTabBar is now visible, we can sync heights of both tabbars
|
// ComboTabBar is now visible, we can sync heights of both tabbars
|
||||||
m_pinnedTabBar->setFixedHeight(m_mainTabBar->height());
|
m_pinnedTabBar->setFixedHeight(m_mainTabBar->sizeHint().height());
|
||||||
|
m_mainTabBar->setFixedHeight(m_mainTabBar->sizeHint().height());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -840,11 +841,6 @@ int ComboTabBar::toLocalIndex(int globalIndex) const
|
||||||
void ComboTabBar::updatePinnedTabBarVisibility()
|
void ComboTabBar::updatePinnedTabBarVisibility()
|
||||||
{
|
{
|
||||||
m_pinnedTabBarWidget->setVisible(pinnedTabsCount() > 0);
|
m_pinnedTabBarWidget->setVisible(pinnedTabsCount() > 0);
|
||||||
|
|
||||||
if (pinnedTabsCount() > 0) {
|
|
||||||
m_pinnedTabBarWidget->setFixedHeight(m_mainTabBarWidget->height());
|
|
||||||
m_pinnedTabBar->setFixedHeight(m_mainTabBar->height());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComboTabBar::setMinimumWidths()
|
void ComboTabBar::setMinimumWidths()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user