1
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:
David Rosca 2014-05-02 21:25:49 +02:00
parent e6f4853af7
commit a30aac169a

View File

@ -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()