forked from qt-creator/qt-creator
QmlProfiler: remove unused members from statistics relatives model
We never use the q pointer and we only show notes in the main model. Change-Id: I635a97f8d878ba12b9ae55e2b758d1651d5e3aae Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -44,13 +44,9 @@ namespace QmlProfiler {
|
||||
class QmlProfilerStatisticsModel::QmlProfilerStatisticsModelPrivate
|
||||
{
|
||||
public:
|
||||
QmlProfilerStatisticsModelPrivate(QmlProfilerStatisticsModel *qq) : q(qq) {}
|
||||
~QmlProfilerStatisticsModelPrivate() {}
|
||||
|
||||
QHash<int, QmlProfilerStatisticsModel::QmlEventStats> data;
|
||||
|
||||
QmlProfilerModelManager *modelManager;
|
||||
QmlProfilerStatisticsModel *q;
|
||||
|
||||
int modelId;
|
||||
|
||||
@@ -61,7 +57,7 @@ public:
|
||||
|
||||
QmlProfilerStatisticsModel::QmlProfilerStatisticsModel(QmlProfilerModelManager *modelManager,
|
||||
QObject *parent) :
|
||||
QObject(parent), d(new QmlProfilerStatisticsModelPrivate(this))
|
||||
QObject(parent), d(new QmlProfilerStatisticsModelPrivate)
|
||||
{
|
||||
d->modelManager = modelManager;
|
||||
connect(modelManager->qmlModel(), &QmlProfilerDataModel::changed,
|
||||
|
@@ -112,7 +112,6 @@ public:
|
||||
void clear();
|
||||
|
||||
const QmlStatisticsRelativesMap &getData(int typeId) const;
|
||||
QVariantList getNotes(int typeId) const;
|
||||
const QVector<QmlProfilerDataModel::QmlEventTypeData> &getTypes() const;
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user