QmlJS: Fix uses of ids not being updated correctly.

updateUses() has to be called for cursor position changes.

Done-with: Kai Koehne
This commit is contained in:
Christian Kamm
2010-08-30 12:10:44 +02:00
parent fef32dff44
commit 654d94a8c1

View File

@@ -703,7 +703,9 @@ QmlJSTextEditor::QmlJSTextEditor(QWidget *parent) :
connect(m_semanticRehighlightTimer, SIGNAL(timeout()), this, SLOT(forceSemanticRehighlight())); connect(m_semanticRehighlightTimer, SIGNAL(timeout()), this, SLOT(forceSemanticRehighlight()));
connect(this, SIGNAL(textChanged()), this, SLOT(updateDocument())); connect(this, SIGNAL(textChanged()), this, SLOT(updateDocument()));
connect(this, SIGNAL(textChanged()), this, SLOT(updateUses())); connect(this, SIGNAL(textChanged()), this, SLOT(updateUses()));
connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(updateUses()));
m_updateOutlineTimer = new QTimer(this); m_updateOutlineTimer = new QTimer(this);
m_updateOutlineTimer->setInterval(UPDATE_OUTLINE_INTERVAL); m_updateOutlineTimer->setInterval(UPDATE_OUTLINE_INTERVAL);