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:
Ulf Hermann
2018-05-09 09:27:07 +02:00
parent 9685711cb3
commit 86b368f912
14 changed files with 47 additions and 47 deletions

View File

@@ -44,8 +44,8 @@ class QmlProfilerRangeModel : public QmlProfilerTimelineModel
Q_OBJECT
public:
struct QmlRangeEventStartInstance {
QmlRangeEventStartInstance() :
struct Item {
Item() :
displayRowExpanded(1),
displayRowCollapsed(Constants::QML_MIN_LEVEL),
bindingLoopHead(-1) {}
@@ -84,7 +84,7 @@ private:
void computeExpandedLevels();
void findBindingLoops();
QVector<QmlRangeEventStartInstance> m_data;
QVector<Item> m_data;
QStack<int> m_stack;
QVector<int> m_expandedRowTypes;
};