forked from qt-creator/qt-creator
QmlProfiler: split notes model in generic and specific classes
Change-Id: I633dc6a862f344a7e5e86c25e44e400e3000f644 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -108,18 +108,18 @@ void TimelineRenderer::setZoomer(TimelineZoomControl *zoomer)
|
||||
}
|
||||
}
|
||||
|
||||
void TimelineRenderer::setNotes(QmlProfilerNotesModel *notes)
|
||||
void TimelineRenderer::setNotes(TimelineNotesModel *notes)
|
||||
{
|
||||
if (m_notes == notes)
|
||||
return;
|
||||
|
||||
if (m_notes)
|
||||
disconnect(m_notes, &QmlProfilerNotesModel::changed,
|
||||
disconnect(m_notes, &TimelineNotesModel::changed,
|
||||
this, &TimelineRenderer::setNotesDirty);
|
||||
|
||||
m_notes = notes;
|
||||
if (m_notes)
|
||||
connect(m_notes, &QmlProfilerNotesModel::changed,
|
||||
connect(m_notes, &TimelineNotesModel::changed,
|
||||
this, &TimelineRenderer::setNotesDirty);
|
||||
|
||||
emit notesChanged(m_notes);
|
||||
|
||||
Reference in New Issue
Block a user