forked from qt-creator/qt-creator
QmlJSEditor: avoid jumping cursor while editing
Writing a property made the cursor jumped to the beginning. Now we only set the cursor if the textedit has not the focus and no code completion open. Change-Id: I7e5d41d5f7f9d75ebc90506d276ccaeb193c64b2 Task-number: QTCREATORBUG-15680 Task-number: QTCREATORBUG-17413 Reviewed-by: Marco Benelli <marco.benelli@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
committed by
Robert Loehning
parent
c643095f17
commit
76dc24c3b7
@@ -67,6 +67,7 @@ public:
|
||||
|
||||
QModelIndex outlineModelIndex();
|
||||
void updateOutlineIndexNow();
|
||||
bool isOutlineCursorChangesBlocked();
|
||||
|
||||
TextEditor::AssistInterface *createAssistInterface(TextEditor::AssistKind assistKind,
|
||||
TextEditor::AssistReason reason) const override;
|
||||
@@ -121,6 +122,7 @@ private:
|
||||
QTimer m_contextPaneTimer;
|
||||
QComboBox *m_outlineCombo;
|
||||
QModelIndex m_outlineModelIndex;
|
||||
bool m_blockOutLineCursorChanges = false;
|
||||
QmlJS::ModelManagerInterface *m_modelManager = nullptr;
|
||||
|
||||
QmlJS::IContextPane *m_contextPane = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user