From 54b1106f4b5f912220f8dd1dc77129e81d59e05b Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 26 Apr 2016 12:26:46 +0200 Subject: QmlProfiler: Move notes into the notes model There is not reason to keep them in the general data model and cross reference between the models all the time. Change-Id: Ic77c518928dcd6234555cb3f6a830bcc3dc4a1a4 Reviewed-by: Joerg Bornemann --- src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp') diff --git a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp index e81e41c810..43395b94d3 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp @@ -41,7 +41,6 @@ class QmlProfilerDataModel::QmlProfilerDataModelPrivate public: QVector eventTypes; QVector eventList; - QVector eventNotes; QHash eventTypeIds; QmlProfilerModelManager *modelManager; @@ -136,12 +135,6 @@ const QVector &QmlProfilerDataModel::eventTypes() const return d->eventTypes; } -const QVector &QmlProfilerDataModel::notes() const -{ - Q_D(const QmlProfilerDataModel); - return d->eventNotes; -} - void QmlProfilerDataModel::setData(qint64 traceStart, qint64 traceEnd, const QVector &types, const QVector &events) @@ -156,12 +149,6 @@ void QmlProfilerDataModel::setData(qint64 traceStart, qint64 traceEnd, d->modelManager->modelProxyCountUpdated(d->modelId, 1, 2); } -void QmlProfilerDataModel::setNotes(const QVector ¬es) -{ - Q_D(QmlProfilerDataModel); - d->eventNotes = notes; -} - int QmlProfilerDataModel::count() const { Q_D(const QmlProfilerDataModel); @@ -174,7 +161,6 @@ void QmlProfilerDataModel::clear() d->eventList.clear(); d->eventTypes.clear(); d->eventTypeIds.clear(); - d->eventNotes.clear(); d->detailsRewriter->clearRequests(); d->modelManager->modelProxyCountUpdated(d->modelId, 0, 1); emit changed(); -- cgit v1.2.1