diff options
| author | Eike Ziller <eike.ziller@digia.com> | 2013-04-18 18:21:17 +0200 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@digia.com> | 2013-04-19 16:21:30 +0200 |
| commit | b450b3071e7fd3de22c8d51503efd90c62780ee1 (patch) | |
| tree | a949011c4cd25b92d1adc1012f43bd908549b220 /src/plugins/debugger/sourceutils.cpp | |
| parent | e31575a493c70116c46eb09fd9d469a70ddd2298 (diff) | |
| download | qt-creator-b450b3071e7fd3de22c8d51503efd90c62780ee1.tar.gz | |
TextEditors: Separate away methods that actually work on a document
Introduces ITextEditorDocument. This is part of a more general "use
documents instead of editors whereever possible". It will allow to move
to e.g. ITextEditor::openedTextDocumentContents() instead of
ITextEditor::openedTextEditorsContents().
Change-Id: I5ebceaa257a0d2c3e8ac4ac51b9b08b6faa42487
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/debugger/sourceutils.cpp')
| -rw-r--r-- | src/plugins/debugger/sourceutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/sourceutils.cpp b/src/plugins/debugger/sourceutils.cpp index c495151e41..12072d2197 100644 --- a/src/plugins/debugger/sourceutils.cpp +++ b/src/plugins/debugger/sourceutils.cpp @@ -340,7 +340,7 @@ QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos, QTextCursor tc(plaintext->document()); tc.setPosition(pos); - const QChar ch = editor->characterAt(pos); + const QChar ch = editor->textDocument()->characterAt(pos); if (ch.isLetterOrNumber() || ch == QLatin1Char('_')) tc.movePosition(QTextCursor::EndOfWord); |
