summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-04-26 12:26:46 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-06 10:26:13 +0000
commit54b1106f4b5f912220f8dd1dc77129e81d59e05b (patch)
tree3dad7e04fd04e799a3b3b16df9b7677e94bc3881 /src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp
parentd6f351b689ed5fd91af94f695ab753ba6d8897d9 (diff)
downloadqt-creator-54b1106f4b5f912220f8dd1dc77129e81d59e05b.tar.gz
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 <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerdatamodel.cpp14
1 files changed, 0 insertions, 14 deletions
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<QmlEventType> eventTypes;
QVector<QmlEvent> eventList;
- QVector<QmlNote> eventNotes;
QHash<QmlEventType, int> eventTypeIds;
QmlProfilerModelManager *modelManager;
@@ -136,12 +135,6 @@ const QVector<QmlEventType> &QmlProfilerDataModel::eventTypes() const
return d->eventTypes;
}
-const QVector<QmlNote> &QmlProfilerDataModel::notes() const
-{
- Q_D(const QmlProfilerDataModel);
- return d->eventNotes;
-}
-
void QmlProfilerDataModel::setData(qint64 traceStart, qint64 traceEnd,
const QVector<QmlEventType> &types,
const QVector<QmlEvent> &events)
@@ -156,12 +149,6 @@ void QmlProfilerDataModel::setData(qint64 traceStart, qint64 traceEnd,
d->modelManager->modelProxyCountUpdated(d->modelId, 1, 2);
}
-void QmlProfilerDataModel::setNotes(const QVector<QmlNote> &notes)
-{
- 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();