mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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_pinnedTabBar(0)
|
||||
, m_maxVisiblePinnedTab(0)
|
||||
, m_heightIsDirty(true)
|
||||
, m_mainBarOverFlowed(false)
|
||||
, m_dragOffset(0)
|
||||
, m_usesScrollButtons(false)
|
||||
@ -128,14 +127,6 @@ int ComboTabBar::insertTab(int index, const QIcon &icon, const QString &text, bo
|
||||
tabInserted(index);
|
||||
setMinimumWidthes();
|
||||
|
||||
if (m_heightIsDirty) {
|
||||
setUpLayout();
|
||||
|
||||
if (m_mainTabBarWidget->height() > 0) {
|
||||
m_heightIsDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,6 @@ private:
|
||||
|
||||
int m_maxVisiblePinnedTab;
|
||||
QString m_closeButtonsToolTip;
|
||||
bool m_heightIsDirty;
|
||||
bool m_mainBarOverFlowed;
|
||||
int m_dragOffset;
|
||||
bool m_usesScrollButtons;
|
||||
|
Loading…
Reference in New Issue
Block a user