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:
@@ -48,9 +48,8 @@ namespace Internal {
|
||||
|
||||
BreakpointMarker::BreakpointMarker(BreakpointModelId id,
|
||||
const QString &fileName, int lineNumber)
|
||||
: m_id(id)
|
||||
: BaseTextMark(fileName, lineNumber), m_id(id)
|
||||
{
|
||||
setLocation(fileName, lineNumber);
|
||||
setIcon(breakHandler()->icon(m_id));
|
||||
setPriority(TextEditor::ITextMark::NormalPriority);
|
||||
//qDebug() << "CREATE MARKER " << fileName << lineNumber;
|
||||
|
||||
Reference in New Issue
Block a user