forked from qt-creator/qt-creator
Clang: Rebuild overview model tree when token data is updated
In release builds overview model tree is built earlier then the job with token information is completed. Change-Id: I1a563551e813996001fb97924ac441e2b7d599b9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -133,6 +133,8 @@ CppEditorOutline::CppEditorOutline(TextEditor::TextEditorWidget *editorWidget)
|
||||
m_updateTimer = newSingleShotTimer(this, UpdateOutlineIntervalInMs,
|
||||
QLatin1String("CppEditorOutline::m_updateTimer"));
|
||||
connect(m_updateTimer, &QTimer::timeout, this, &CppEditorOutline::updateNow);
|
||||
connect(m_model.get(), &CppTools::AbstractOverviewModel::needsUpdate, this,
|
||||
&CppEditorOutline::updateNow);
|
||||
|
||||
m_updateIndexTimer = newSingleShotTimer(this, UpdateOutlineIntervalInMs,
|
||||
QLatin1String("CppEditorOutline::m_updateIndexTimer"));
|
||||
|
||||
Reference in New Issue
Block a user