forked from qt-creator/qt-creator
Fix width of mode selector
Task-number: QTCREATORBUG-9509 Change-Id: Ifec0b6ca777e3e9ed351db7d413339cedcdaecce Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -101,11 +101,13 @@ public:
|
|||||||
tab->icon = icon;
|
tab->icon = icon;
|
||||||
tab->text = label;
|
tab->text = label;
|
||||||
m_tabs.insert(index, tab);
|
m_tabs.insert(index, tab);
|
||||||
|
updateGeometry();
|
||||||
}
|
}
|
||||||
void setEnabled(int index, bool enabled);
|
void setEnabled(int index, bool enabled);
|
||||||
void removeTab(int index) {
|
void removeTab(int index) {
|
||||||
FancyTab *tab = m_tabs.takeAt(index);
|
FancyTab *tab = m_tabs.takeAt(index);
|
||||||
delete tab;
|
delete tab;
|
||||||
|
updateGeometry();
|
||||||
}
|
}
|
||||||
void setCurrentIndex(int index);
|
void setCurrentIndex(int index);
|
||||||
int currentIndex() const { return m_currentIndex; }
|
int currentIndex() const { return m_currentIndex; }
|
||||||
|
|||||||
Reference in New Issue
Block a user