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:
Ulf Hermann
2014-12-08 16:14:52 +01:00
parent 67e515aec6
commit 6239de07a4
13 changed files with 417 additions and 219 deletions

View File

@@ -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);