forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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> ¬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();
|
||||
|
||||
Reference in New Issue
Block a user