aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertracefile.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-04-26 11:50:59 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-04 09:49:32 +0000
commita9555371327b31a294109b42d954371105ccee9b (patch)
treef1778f3db29710d74841419e94991741fca56d60 /src/plugins/qmlprofiler/qmlprofilertracefile.h
parent08f807a13465b8664cafaa4206076d9d083a6e9a (diff)
QmlProfiler: Fix the naming scheme for events and event types
Move them out of the QmlProfilerDataModel class, drop the "Data" suffix, and rename symbols that refer to them in order to call them by their names. Change-Id: I41151359921b325edb79111371083c4185bd148b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertracefile.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertracefile.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.h b/src/plugins/qmlprofiler/qmlprofilertracefile.h
index 2da149d40cc..6d5c9b15e7b 100644
--- a/src/plugins/qmlprofiler/qmlprofilertracefile.h
+++ b/src/plugins/qmlprofiler/qmlprofilertracefile.h
@@ -56,26 +56,26 @@ public:
qint64 traceStart() const { return m_traceStart; }
qint64 traceEnd() const { return m_traceEnd; }
- const QVector<QmlProfilerDataModel::QmlEventTypeData> &qmlEvents() const { return m_qmlEvents; }
- const QVector<QmlProfilerDataModel::QmlEventData> &ranges() const { return m_ranges; }
- const QVector<QmlProfilerDataModel::QmlEventNoteData> &notes() const { return m_notes; }
+ const QVector<QmlEventType> &eventTypes() const { return m_eventTypes; }
+ const QVector<QmlEvent> &events() const { return m_events; }
+ const QVector<QmlNote> &notes() const { return m_notes; }
signals:
void error(const QString &error);
void success();
private:
- void loadEventData(QXmlStreamReader &reader);
- void loadProfilerDataModel(QXmlStreamReader &reader);
- void loadNoteData(QXmlStreamReader &reader);
+ void loadEventTypes(QXmlStreamReader &reader);
+ void loadEvents(QXmlStreamReader &reader);
+ void loadNotes(QXmlStreamReader &reader);
void progress(QIODevice *device);
bool isCanceled() const;
qint64 m_traceStart, m_traceEnd;
QFutureInterface<void> *m_future;
- QVector<QmlProfilerDataModel::QmlEventTypeData> m_qmlEvents;
- QVector<QmlProfilerDataModel::QmlEventData> m_ranges;
- QVector<QmlProfilerDataModel::QmlEventNoteData> m_notes;
+ QVector<QmlEventType> m_eventTypes;
+ QVector<QmlEvent> m_events;
+ QVector<QmlNote> m_notes;
quint64 m_loadedFeatures;
};
@@ -88,9 +88,8 @@ public:
explicit QmlProfilerFileWriter(QObject *parent = 0);
void setTraceTime(qint64 startTime, qint64 endTime, qint64 measturedTime);
- void setQmlEvents(const QVector<QmlProfilerDataModel::QmlEventTypeData> &types,
- const QVector<QmlProfilerDataModel::QmlEventData> &events);
- void setNotes(const QVector<QmlProfilerDataModel::QmlEventNoteData> &notes);
+ void setData(const QVector<QmlEventType> &types, const QVector<QmlEvent> &events);
+ void setNotes(const QVector<QmlNote> &notes);
void setFuture(QFutureInterface<void> *future);
void save(QIODevice *device);
@@ -102,9 +101,9 @@ private:
qint64 m_startTime, m_endTime, m_measuredTime;
QFutureInterface<void> *m_future;
- QVector<QmlProfilerDataModel::QmlEventTypeData> m_qmlEvents;
- QVector<QmlProfilerDataModel::QmlEventData> m_ranges;
- QVector<QmlProfilerDataModel::QmlEventNoteData> m_notes;
+ QVector<QmlEventType> m_eventTypes;
+ QVector<QmlEvent> m_events;
+ QVector<QmlNote> m_notes;
int m_newProgressValue;
};