summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourceagent.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-12-09 16:54:31 +0100
committerEike Ziller <eike.ziller@digia.com>2013-12-10 09:11:45 +0100
commit18313bdb3306e1f26965bd6f488eb48b57511674 (patch)
treec07d19f12cd784ba1b7b1a80d153d632512a8ac0 /src/plugins/debugger/sourceagent.cpp
parent890f72160c61507b4bf85bdf4502d63a32f762d0 (diff)
downloadqt-creator-18313bdb3306e1f26965bd6f488eb48b57511674.tar.gz
Move markableInterface() to ITextEditorDocument
And remove the indirection over BaseTextEditorWidget. Change-Id: I2c570edf46b9ca72a11704ce27d8ae3f2218dcf0 Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/debugger/sourceagent.cpp')
-rw-r--r--src/plugins/debugger/sourceagent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceagent.cpp b/src/plugins/debugger/sourceagent.cpp
index 210528bf13..d944a20b1c 100644
--- a/src/plugins/debugger/sourceagent.cpp
+++ b/src/plugins/debugger/sourceagent.cpp
@@ -137,7 +137,7 @@ void SourceAgent::updateLocationMarker()
QTC_ASSERT(d->editor, return);
if (d->locationMark)
- d->editor->markableInterface()->removeMark(d->locationMark);
+ d->editor->textDocument()->markableInterface()->removeMark(d->locationMark);
delete d->locationMark;
d->locationMark = 0;
if (d->engine->stackHandler()->currentFrame().file == d->path) {
@@ -145,7 +145,7 @@ void SourceAgent::updateLocationMarker()
d->locationMark = new TextEditor::ITextMark(lineNumber);
d->locationMark->setIcon(debuggerCore()->locationMarkIcon());
d->locationMark->setPriority(TextEditor::ITextMark::HighPriority);
- d->editor->markableInterface()->addMark(d->locationMark);
+ d->editor->textDocument()->markableInterface()->addMark(d->locationMark);
QPlainTextEdit *plainTextEdit = qobject_cast<QPlainTextEdit *>(d->editor->widget());
QTC_ASSERT(plainTextEdit, return);
QTextCursor tc = plainTextEdit->textCursor();