QmlJS: Force a semantic check when library information changes.

Task-number: QTCREATORBUG-2640
Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-10-15 10:09:40 +02:00
parent a9b4a25a68
commit 836366c187
3 changed files with 3 additions and 1 deletions

View File

@@ -749,6 +749,8 @@ QmlJSTextEditor::QmlJSTextEditor(QWidget *parent) :
m_semanticHighlighter->setModelManager(m_modelManager);
connect(m_modelManager, SIGNAL(documentUpdated(QmlJS::Document::Ptr)),
this, SLOT(onDocumentUpdated(QmlJS::Document::Ptr)));
connect(m_modelManager, SIGNAL(libraryInfoUpdated(QString,QmlJS::LibraryInfo)),
this, SLOT(forceSemanticRehighlight()));
connect(this->document(), SIGNAL(modificationChanged(bool)), this, SLOT(modificationChanged(bool)));
}