forked from qt-creator/qt-creator
QmlDesigner: use textCursor method
Change-Id: I43309ea37bc6c0af0feea101df582ff51bd2fe30 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -126,7 +126,7 @@ void PlainTextEditModifier::startGroup()
|
||||
if (!m_changeSet)
|
||||
m_changeSet = new ChangeSet;
|
||||
|
||||
m_textEdit->textCursor().beginEditBlock();
|
||||
textCursor().beginEditBlock();
|
||||
}
|
||||
|
||||
void PlainTextEditModifier::flushGroup()
|
||||
@@ -143,7 +143,7 @@ void PlainTextEditModifier::commitGroup()
|
||||
m_changeSet = 0;
|
||||
}
|
||||
|
||||
m_textEdit->textCursor().endEditBlock();
|
||||
textCursor().endEditBlock();
|
||||
}
|
||||
|
||||
void PlainTextEditModifier::textEditChanged()
|
||||
@@ -157,7 +157,7 @@ void PlainTextEditModifier::textEditChanged()
|
||||
void PlainTextEditModifier::runRewriting(ChangeSet *changeSet)
|
||||
{
|
||||
m_ongoingTextChange = true;
|
||||
QTextCursor cursor = m_textEdit->textCursor();
|
||||
QTextCursor cursor = textCursor();
|
||||
changeSet->apply(&cursor);
|
||||
m_ongoingTextChange = false;
|
||||
textEditChanged();
|
||||
|
Reference in New Issue
Block a user