diff options
author | hjk <hjk121@nokiamail.com> | 2014-09-01 18:16:12 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-09-01 18:22:03 +0200 |
commit | e5b07982bbd050a15850f7ac97327990f2c18a8c (patch) | |
tree | 3c4538e21c1bb93dbba3d7d35294de356615e99e /src | |
parent | cdea89aa6f693b33e9c7c8b90491ebe7ad2679a7 (diff) | |
download | qt-creator-e5b07982bbd050a15850f7ac97327990f2c18a8c.tar.gz |
QmlDesigner: Remove remaining BaseTextEditor::editor() use
Change-Id: Idacffdac14873ae298fb24fd7221778bcb0cd83c
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/basetexteditmodifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/basetexteditmodifier.cpp b/src/plugins/qmldesigner/designercore/model/basetexteditmodifier.cpp index 345c66f07c..1ec88bd7be 100644 --- a/src/plugins/qmldesigner/designercore/model/basetexteditmodifier.cpp +++ b/src/plugins/qmldesigner/designercore/model/basetexteditmodifier.cpp @@ -51,14 +51,13 @@ void BaseTextEditModifier::indent(int offset, int length) TextEditor::BaseTextDocument *baseTextEditorDocument = baseTextEditorWidget->textDocument(); QTextDocument *textDocument = baseTextEditorWidget->document(); - TextEditor::BaseTextEditor *baseTextEditor = baseTextEditorWidget->editor(); int startLine = -1; int endLine = -1; int column; - baseTextEditor->convertPosition(offset, &startLine, &column); //get line - baseTextEditor->convertPosition(offset + length, &endLine, &column); //get line + baseTextEditorWidget->convertPosition(offset, &startLine, &column); //get line + baseTextEditorWidget->convertPosition(offset + length, &endLine, &column); //get line QTextDocument *doc = baseTextEditorDocument->document(); QTextCursor tc(doc); |