summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilereventview.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-10 16:03:21 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-11 09:13:43 +0000
commit6f8acae62dbe39e4fa4a698833fafee50237f1f9 (patch)
tree86f00be83285aedf14d48614cda9c276f30a3f7e /src/plugins/qmlprofiler/qmlprofilereventview.cpp
parentf388882995c42f2bd34330e4202c6950d2677abb (diff)
downloadqt-creator-6f8acae62dbe39e4fa4a698833fafee50237f1f9.tar.gz
QmlProfiler: Remove QmlProfilerBaseModel
Now that the V8 model is gone we don't need a base model anymore. Change-Id: I35aee0627f78f417ec9c971e1c7bbf70adfc7b27 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilereventview.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilereventview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.cpp b/src/plugins/qmlprofiler/qmlprofilereventview.cpp
index 5018c06327..3e235127df 100644
--- a/src/plugins/qmlprofiler/qmlprofilereventview.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilereventview.cpp
@@ -653,7 +653,7 @@ void QmlProfilerEventsMainView::parseModelProxy()
}
if (d->m_fieldShown[TotalTime]) {
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(stats.duration));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(stats.duration));
newRow.last()->setData(QVariant(stats.duration));
}
@@ -663,22 +663,22 @@ void QmlProfilerEventsMainView::parseModelProxy()
}
if (d->m_fieldShown[TimePerCall]) {
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(stats.timePerCall));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(stats.timePerCall));
newRow.last()->setData(QVariant(stats.timePerCall));
}
if (d->m_fieldShown[MedianTime]) {
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(stats.medianTime));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(stats.medianTime));
newRow.last()->setData(QVariant(stats.medianTime));
}
if (d->m_fieldShown[MaxTime]) {
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(stats.maxTime));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(stats.maxTime));
newRow.last()->setData(QVariant(stats.maxTime));
}
if (d->m_fieldShown[MinTime]) {
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(stats.minTime));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(stats.minTime));
newRow.last()->setData(QVariant(stats.minTime));
}
@@ -938,7 +938,7 @@ void QmlProfilerEventRelativesView::rebuildTree(
newRow << new EventsViewItem(type.displayName.isEmpty() ? tr("<bytecode>") :
type.displayName);
newRow << new EventsViewItem(QmlProfilerEventsMainView::nameForType(type.rangeType));
- newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(event.duration));
+ newRow << new EventsViewItem(QmlProfilerDataModel::formatTime(event.duration));
newRow << new EventsViewItem(QString::number(event.calls));
newRow << new EventsViewItem(type.data.isEmpty() ? tr("Source code not available") :
type.data);