forked from qt-creator/qt-creator
QmlDesigner: Fix spelling of API
CurserSelectionSyncronisation -> CursorSelectionSynchronisation Change-Id: I1370d0153d566e1c54f1e00f8c2339bfc9e33a5c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
afc39c4cc3
commit
b7cdd90e55
@@ -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
|
||||
|
Reference in New Issue
Block a user