Commit b7cdd90e authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Tim Jenssen

QmlDesigner: Fix spelling of API

CurserSelectionSyncronisation -> CursorSelectionSynchronisation

Change-Id: I1370d0153d566e1c54f1e00f8c2339bfc9e33a5c
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent afc39c4c
......@@ -173,9 +173,9 @@ void TextEditorView::selectedNodesChanged(const QList<ModelNode> &/*selectedNode
void TextEditorView::customNotification(const AbstractView * /*view*/, const QString &identifier, const QList<ModelNode> &/*nodeList*/, const QList<QVariant> &/*data*/)
{
if (identifier == StartRewriterApply)
m_widget->setBlockCurserSelectionSyncronisation(true);
m_widget->setBlockCursorSelectionSynchronisation(true);
else if (identifier == EndRewriterApply)
m_widget->setBlockCurserSelectionSyncronisation(false);
m_widget->setBlockCursorSelectionSynchronisation(false);
}
void TextEditorView::documentMessagesChanged(const QList<DocumentMessage> &errors, const QList<DocumentMessage> &)
......
......@@ -80,7 +80,7 @@ void TextEditorWidget::setTextEditor(TextEditor::BaseTextEditor *textEditor)
connect(textEditor->editorWidget(), &QPlainTextEdit::cursorPositionChanged,
this, [this]() {
/* Cursor position is changed by rewriter */
if (!m_blockCurserSelectionSyncronisation)
if (!m_blockCursorSelectionSynchronisation)
m_updateSelectionTimer.start();
});
......@@ -168,9 +168,9 @@ int TextEditorWidget::currentLine() const
return -1;
}
void TextEditorWidget::setBlockCurserSelectionSyncronisation(bool b)
void TextEditorWidget::setBlockCursorSelectionSynchronisation(bool b)
{
m_blockCurserSelectionSyncronisation = b;
m_blockCursorSelectionSynchronisation = b;
}
bool TextEditorWidget::eventFilter( QObject *, QEvent *event)
......
......@@ -59,7 +59,7 @@ public:
int currentLine() const;
void setBlockCurserSelectionSyncronisation(bool b);
void setBlockCursorSelectionSynchronisation(bool b);
protected:
bool eventFilter(QObject *object, QEvent *event) override;
......@@ -71,7 +71,7 @@ private:
QPointer<TextEditorView> m_textEditorView;
QTimer m_updateSelectionTimer;
TextEditorStatusBar *m_statusBar;
bool m_blockCurserSelectionSyncronisation = false;
bool m_blockCursorSelectionSynchronisation = false;
};
} // namespace QmlDesigner
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment