TextEditor: Shuffle some convenience functions

Remove rarely used ones, add a currentTextEditorWidget()

Change-Id: I27b97c17927c71e07dc3b489785b7f2f76eb801e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2014-09-30 17:35:35 +02:00
parent 577fcd97d4
commit 96be6ae15f
7 changed files with 32 additions and 43 deletions

View File

@@ -114,7 +114,7 @@ public:
cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::MoveAnchor, cursorPosition);
editor->setTextCursor(cursor);
QTextDocument *qtextDocument = editor->qdocument();
QTextDocument *qtextDocument = editor->textDocument()->document();
CppRefactoringFilePtr cppRefactoringFile
= CppRefactoringChanges::file(editor->editorWidget(), document);