QmlProfiler: Make members of QmlNote private

The only member that can change after initialization is the text.

Change-Id: I6958f510e67c9fd6fe1f109c2676f80d93e7fd0c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-06-07 13:54:23 +02:00
parent 0c0cb4b043
commit 52ee1141a8
4 changed files with 30 additions and 17 deletions

View File

@@ -67,7 +67,7 @@ void QmlProfilerNotesModel::loadData()
TimelineNotesModel::clear();
for (int i = 0; i != m_notes.size(); ++i) {
const QmlNote &note = m_notes[i];
addQmlNote(note.typeIndex, note.startTime, note.duration, note.text);
addQmlNote(note.typeIndex(), note.startTime(), note.duration(), note.text());
}
resetModified();
blockSignals(false);