aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-03-28 09:42:28 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-04-17 12:20:57 +0000
commitdcd8d37f351803fc0a1b9402b6503fd8dce93a09 (patch)
tree81bd147064da73d89c4190367e09228e89a22c7f /src/plugins/qmlprofiler/qmlprofilermodelmanager.h
parent7ca958fa85a9855ae658eaa3fa38e60b1279fb04 (diff)
QmlProfiler: Don't expose the vector of event types
We always want either the total number of event types or one specific type. There is no need to expose the fact that we keep them as a vector. Also, use int as the type of the "number" methods as that aligns better with Qt containers, and rename the methods. We don't need to state the fact that we've loaded the events and types at some point. Change-Id: Iaf680ec9fa10e1070ddee6bcc079800e401775f0 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
index 57623fd6fe1..a6ec8c4364d 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h
@@ -73,8 +73,8 @@ public:
Internal::QmlProfilerTextMarkModel *textMarkModel() const;
bool isEmpty() const;
- uint numLoadedEvents() const;
- uint numLoadedEventTypes() const;
+ int numEvents() const;
+ int numEventTypes() const;
int registerModelProxy();
void announceFeatures(quint64 features, EventLoader eventLoader, Finalizer finalizer);
@@ -87,7 +87,7 @@ public:
void addEventTypes(const QVector<QmlEventType> &types);
void addEventType(const QmlEventType &type);
- const QVector<QmlEventType> &eventTypes() const;
+ const QmlEventType &eventType(int typeId) const;
bool replayEvents(qint64 rangeStart, qint64 rangeEnd, EventLoader loader) const;