diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-22 10:14:06 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-22 12:13:30 +0200 |
commit | eb749ec3a2aca7d3d6fc0ddb9106c6f50ed5aa5e (patch) | |
tree | e17684174e1b3fb293a9b317a95e5614a093ff39 /src/plugins/texteditor/refactoringchanges.cpp | |
parent | b13d6ae36244cc9d3958240ceb7540d474549a8e (diff) | |
download | qt-creator-eb749ec3a2aca7d3d6fc0ddb9106c6f50ed5aa5e.tar.gz |
Generalized the changeset operations.
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.cpp')
-rw-r--r-- | src/plugins/texteditor/refactoringchanges.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index 456a5291d1..7aa2491ff6 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -73,7 +73,7 @@ QStringList RefactoringChanges::apply() foreach (const Range &range, m_indentRangesByFile.value(fileName, QList<Range>())) { QTextCursor indentCursor = editor->textCursor(); - indentCursor.setPosition(range.begin); + indentCursor.setPosition(range.start); indentCursor.setPosition(range.end, QTextCursor::KeepAnchor); editor->indentInsertedText(indentCursor); } @@ -97,7 +97,7 @@ QStringList RefactoringChanges::apply() foreach (const Range &range, m_indentRangesByFile.value(fileName, QList<Range>())) { QTextCursor start = editor->textCursor(); QTextCursor end = editor->textCursor(); - start.setPosition(range.begin); + start.setPosition(range.start); end.setPosition(range.end); cursorPairs.append(qMakePair(start, end)); } @@ -133,7 +133,7 @@ QStringList RefactoringChanges::apply() foreach (const Range &range, m_indentRangesByFile.value(fileName, QList<Range>())) { QTextCursor indentCursor = editor->textCursor(); - indentCursor.setPosition(range.begin); + indentCursor.setPosition(range.start); indentCursor.setPosition(range.end, QTextCursor::KeepAnchor); editor->indentInsertedText(indentCursor); } |