mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[ComboTabBar] m_heightIsDirty is not really needed
This commit is contained in:
parent
852e197334
commit
3e3d823d95
|
@ -41,7 +41,6 @@ ComboTabBar::ComboTabBar(QWidget* parent)
|
||||||
, m_mainTabBar(0)
|
, m_mainTabBar(0)
|
||||||
, m_pinnedTabBar(0)
|
, m_pinnedTabBar(0)
|
||||||
, m_maxVisiblePinnedTab(0)
|
, m_maxVisiblePinnedTab(0)
|
||||||
, m_heightIsDirty(true)
|
|
||||||
, m_mainBarOverFlowed(false)
|
, m_mainBarOverFlowed(false)
|
||||||
, m_dragOffset(0)
|
, m_dragOffset(0)
|
||||||
, m_usesScrollButtons(false)
|
, m_usesScrollButtons(false)
|
||||||
|
@ -128,14 +127,6 @@ int ComboTabBar::insertTab(int index, const QIcon &icon, const QString &text, bo
|
||||||
tabInserted(index);
|
tabInserted(index);
|
||||||
setMinimumWidthes();
|
setMinimumWidthes();
|
||||||
|
|
||||||
if (m_heightIsDirty) {
|
|
||||||
setUpLayout();
|
|
||||||
|
|
||||||
if (m_mainTabBarWidget->height() > 0) {
|
|
||||||
m_heightIsDirty = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ private:
|
||||||
|
|
||||||
int m_maxVisiblePinnedTab;
|
int m_maxVisiblePinnedTab;
|
||||||
QString m_closeButtonsToolTip;
|
QString m_closeButtonsToolTip;
|
||||||
bool m_heightIsDirty;
|
|
||||||
bool m_mainBarOverFlowed;
|
bool m_mainBarOverFlowed;
|
||||||
int m_dragOffset;
|
int m_dragOffset;
|
||||||
bool m_usesScrollButtons;
|
bool m_usesScrollButtons;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user