forked from qt-creator/qt-creator
OverViewComboBox: Remove ::sync method, call expandAll() directly
Change-Id: Ia30801e85bffc53434048189150ed2b09a09d7ae Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -106,11 +106,6 @@ public:
|
|||||||
setRootIsDecorated(false);
|
setRootIsDecorated(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sync()
|
|
||||||
{
|
|
||||||
expandAll();
|
|
||||||
}
|
|
||||||
|
|
||||||
void adjustWidth(int width)
|
void adjustWidth(int width)
|
||||||
{
|
{
|
||||||
setMaximumWidth(width);
|
setMaximumWidth(width);
|
||||||
@@ -1081,7 +1076,7 @@ void CPPEditorWidget::updateOutlineNow()
|
|||||||
m_outlineModel->rebuild(document);
|
m_outlineModel->rebuild(document);
|
||||||
|
|
||||||
OverviewTreeView *treeView = static_cast<OverviewTreeView *>(m_outlineCombo->view());
|
OverviewTreeView *treeView = static_cast<OverviewTreeView *>(m_outlineCombo->view());
|
||||||
treeView->sync();
|
treeView->expandAll();
|
||||||
updateOutlineIndexNow();
|
updateOutlineIndexNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user