forked from qt-creator/qt-creator
qmljs: avoid ecessive updating when cxx types might have changed
perform an update of the qml code model only if a cpp file exporting qml types has not changed for at least 15 seconds. Change-Id: I674eed8dd5a68f2d74a8794fd8a237c2d99a3185 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -244,7 +244,7 @@ ModelManager::ModelManager(QObject *parent):
|
||||
connect(m_updateCppQmlTypesTimer, SIGNAL(timeout()), SLOT(startCppQmlTypeUpdate()));
|
||||
|
||||
m_asyncResetTimer = new QTimer(this);
|
||||
m_asyncResetTimer->setInterval(1000);
|
||||
m_asyncResetTimer->setInterval(15000);
|
||||
m_asyncResetTimer->setSingleShot(true);
|
||||
connect(m_asyncResetTimer, SIGNAL(timeout()), SLOT(resetCodeModel()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user