forked from qt-creator/qt-creator
Optimize BaseTextMark
Instead of each BaseTextMark being a QObject and being connected to editorOpened, centralize that and distribute the signal to only the BaseTextMarks that need it. Change-Id: I3f2783c34a25d78aa335418236850436028bfdf3 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -621,8 +621,7 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
texteditor->gotoLine(line, 0);
|
||||
|
||||
if (loc.needsMarker()) {
|
||||
d->m_locationMark.reset(new TextEditor::BaseTextMark);
|
||||
d->m_locationMark->setLocation(file, line);
|
||||
d->m_locationMark.reset(new TextEditor::BaseTextMark(file, line));
|
||||
d->m_locationMark->setIcon(debuggerCore()->locationMarkIcon());
|
||||
d->m_locationMark->setPriority(TextEditor::ITextMark::HighPriority);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user