forked from qt-creator/qt-creator
QmlProfiler: Rename all the timeline model data structs to Item
This allows us to define a template for filling a QmlProfilerTimelineModel without spelling out all the type names. Change-Id: I97870287a795d95f58a949729afa715f145817bb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -70,7 +70,7 @@ void QmlProfilerRangeModel::loadEvent(const QmlEvent &event, const QmlEventType
|
||||
if (event.rangeStage() == RangeStart) {
|
||||
int index = insertStart(event.timestamp(), event.typeIndex());
|
||||
m_stack.append(index);
|
||||
m_data.insert(index, QmlRangeEventStartInstance());
|
||||
m_data.insert(index, Item());
|
||||
} else if (event.rangeStage() == RangeEnd) {
|
||||
if (!m_stack.isEmpty()) {
|
||||
int index = m_stack.pop();
|
||||
|
||||
Reference in New Issue
Block a user