QmlJSEditor: using RefactorMarker for Qt Quick ToolBar

* Proper implementation using a timer

* We also do a revision check now

* The RefactorMarker is only shown for types that we support
This commit is contained in:
Thomas Hartmann
2010-08-05 10:44:50 +02:00
parent bb64cc7005
commit 9c70e87715
3 changed files with 59 additions and 8 deletions

View File

@@ -243,6 +243,7 @@ private slots:
void jumpToOutlineElement(int index);
void updateOutlineNow();
void updateOutlineIndexNow();
void updateCursorPositionNow();
void updateFileName();
void updateUses();
@@ -255,6 +256,7 @@ private slots:
void forceSemanticRehighlight();
void updateSemanticInfo(const QmlJSEditor::Internal::SemanticInfo &semanticInfo);
void onCursorPositionChanged();
void onRefactorMarkerClicked(const TextEditor::Internal::RefactorMarker &marker);
protected:
void contextMenuEvent(QContextMenuEvent *e);
@@ -292,6 +294,7 @@ private:
QTimer *m_semanticRehighlightTimer;
QTimer *m_updateOutlineTimer;
QTimer *m_updateOutlineIndexTimer;
QTimer *m_curserPositionTimer;
QComboBox *m_outlineCombo;
QmlOutlineModel *m_outlineModel;
QModelIndex m_outlineModelIndex;