forked from qt-creator/qt-creator
Debugger: Replace debuggerCore() by equivalent free functions
One indirection less on the user code side, and easier to export if needed (partially addressing QTCREATORBUG-13187) Change-Id: I13ab9f471a3a34da7a6331aefc83f6d02413bfab Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -144,7 +144,7 @@ void SourceAgent::updateLocationMarker()
|
||||
if (d->engine->stackHandler()->currentFrame().file == d->path) {
|
||||
int lineNumber = d->engine->stackHandler()->currentFrame().line;
|
||||
d->locationMark = new TextEditor::TextMark(QString(), lineNumber);
|
||||
d->locationMark->setIcon(debuggerCore()->locationMarkIcon());
|
||||
d->locationMark->setIcon(Internal::locationMarkIcon());
|
||||
d->locationMark->setPriority(TextEditor::TextMark::HighPriority);
|
||||
d->editor->textDocument()->addMark(d->locationMark);
|
||||
QTextCursor tc = d->editor->textCursor();
|
||||
|
||||
Reference in New Issue
Block a user