aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/pixmapcachemodel.cpp
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/pixmapcachemodel.cpp
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/pixmapcachemodel.cpp')
-rw-r--r--src/plugins/qmlprofiler/pixmapcachemodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/pixmapcachemodel.cpp b/src/plugins/qmlprofiler/pixmapcachemodel.cpp
index 895dc7ce39b..35aad750e52 100644
--- a/src/plugins/qmlprofiler/pixmapcachemodel.cpp
+++ b/src/plugins/qmlprofiler/pixmapcachemodel.cpp
@@ -174,9 +174,9 @@ void PixmapCacheModel::loadData()
int lastCacheSizeEvent = -1;
int cumulatedCount = 0;
- const QVector<QmlProfilerDataModel::QmlEventTypeData> &types = simpleModel->getEventTypes();
- foreach (const QmlProfilerDataModel::QmlEventData &event, simpleModel->getEvents()) {
- const QmlProfilerDataModel::QmlEventTypeData &type = types[event.typeIndex()];
+ const QVector<QmlEventType> &types = simpleModel->eventTypes();
+ foreach (const QmlEvent &event, simpleModel->events()) {
+ const QmlEventType &type = types[event.typeIndex()];
if (!accepted(type))
continue;
@@ -398,7 +398,7 @@ void PixmapCacheModel::loadData()
break;
}
- updateProgress(count(), 2 * simpleModel->getEvents().count());
+ updateProgress(count(), 2 * simpleModel->events().count());
}
if (lastCacheSizeEvent != -1)