Commit e5b07982 authored by hjk's avatar hjk
Browse files

QmlDesigner: Remove remaining BaseTextEditor::editor() use



Change-Id: Idacffdac14873ae298fb24fd7221778bcb0cd83c
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent cdea89aa
......@@ -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);
......
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