diff options
author | hjk <hjk121@nokiamail.com> | 2014-08-01 23:31:56 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-08-04 10:43:56 +0200 |
commit | d7c2b0b6810adc109201f5f3c1088d3b0f109f70 (patch) | |
tree | a08469835335cb33dcc34cce64a995fa550d0b0b /src/plugins/debugger/sourceagent.cpp | |
parent | a9b70458032ca70bd2dc359da85349d1c28769cc (diff) | |
download | qt-creator-d7c2b0b6810adc109201f5f3c1088d3b0f109f70.tar.gz |
TextEditor: Consolidate document access functions.
There was document(), textDocument() and baseTextDocument().
Two should be enough...
Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/debugger/sourceagent.cpp')
-rw-r--r-- | src/plugins/debugger/sourceagent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceagent.cpp b/src/plugins/debugger/sourceagent.cpp index 3458172a20..957ffd1a4a 100644 --- a/src/plugins/debugger/sourceagent.cpp +++ b/src/plugins/debugger/sourceagent.cpp @@ -136,7 +136,7 @@ void SourceAgent::updateLocationMarker() QTC_ASSERT(d->editor, return); if (d->locationMark) - d->editor->baseTextDocument()->removeMark(d->locationMark); + d->editor->textDocument()->removeMark(d->locationMark); delete d->locationMark; d->locationMark = 0; if (d->engine->stackHandler()->currentFrame().file == d->path) { @@ -144,7 +144,7 @@ void SourceAgent::updateLocationMarker() d->locationMark = new TextEditor::TextMark(QString(), lineNumber); d->locationMark->setIcon(debuggerCore()->locationMarkIcon()); d->locationMark->setPriority(TextEditor::TextMark::HighPriority); - d->editor->baseTextDocument()->addMark(d->locationMark); + d->editor->textDocument()->addMark(d->locationMark); QPlainTextEdit *plainTextEdit = d->editor->editorWidget(); QTC_ASSERT(plainTextEdit, return); QTextCursor tc = plainTextEdit->textCursor(); |