QmlJSEditor: Delay update of outline by 150 ms

This commit is contained in:
Kai Koehne
2010-07-13 11:18:42 +02:00
parent 2bafdb71a2
commit 8d48c51175
4 changed files with 40 additions and 8 deletions

View File

@@ -140,8 +140,15 @@ QmlOutlineModel::QmlOutlineModel(QObject *parent) :
{
}
QmlJS::Document::Ptr QmlOutlineModel::document() const
{
return m_document;
}
void QmlOutlineModel::update(QmlJS::Document::Ptr doc)
{
m_document = doc;
m_treePos.clear();
m_treePos.append(0);
m_currentItem = invisibleRootItem();