diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel.cpp b/src/plugins/qmlprofiler/abstracttimelinemodel.cpp index 2fa63948c5a..6d8adfdfd7b 100644 --- a/src/plugins/qmlprofiler/abstracttimelinemodel.cpp +++ b/src/plugins/qmlprofiler/abstracttimelinemodel.cpp @@ -33,13 +33,12 @@ namespace QmlProfiler { AbstractTimelineModel::AbstractTimelineModel(AbstractTimelineModelPrivate *dd, - const QString &name, const QString &label, QmlDebug::Message message, - QmlDebug::RangeType rangeType, QObject *parent) : + const QString &label, QmlDebug::Message message, QmlDebug::RangeType rangeType, + QObject *parent) : QObject(parent), d_ptr(dd) { Q_D(AbstractTimelineModel); d->q_ptr = this; - d->name = name; d->modelId = 0; d->modelManager = 0; d->expanded = false; @@ -62,12 +61,6 @@ void AbstractTimelineModel::setModelManager(QmlProfilerModelManager *modelManage d->modelId = d->modelManager->registerModelProxy(); } -QString AbstractTimelineModel::name() const -{ - Q_D(const AbstractTimelineModel); - return d->name; -} - int AbstractTimelineModel::count() const { Q_D(const AbstractTimelineModel); diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel.h b/src/plugins/qmlprofiler/abstracttimelinemodel.h index 7fae5adb38e..b6e67196bb9 100644 --- a/src/plugins/qmlprofiler/abstracttimelinemodel.h +++ b/src/plugins/qmlprofiler/abstracttimelinemodel.h @@ -50,7 +50,6 @@ public: // Trivial methods implemented by the abstract model itself void setModelManager(QmlProfilerModelManager *modelManager); - QString name() const; bool isEmpty() const; // Methods are directly passed on to the private model and relying on its virtual methods. @@ -124,9 +123,9 @@ protected: return QColor::fromHsl(hue % 360, Saturation, Lightness); } - explicit AbstractTimelineModel(AbstractTimelineModelPrivate *dd, const QString &name, - const QString &label, QmlDebug::Message message, - QmlDebug::RangeType rangeType, QObject *parent); + explicit AbstractTimelineModel(AbstractTimelineModelPrivate *dd, const QString &label, + QmlDebug::Message message, QmlDebug::RangeType rangeType, + QObject *parent); AbstractTimelineModelPrivate *d_ptr; protected slots: diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel_p.h b/src/plugins/qmlprofiler/abstracttimelinemodel_p.h index 4cc42cd8eb6..34910ba561a 100644 --- a/src/plugins/qmlprofiler/abstracttimelinemodel_p.h +++ b/src/plugins/qmlprofiler/abstracttimelinemodel_p.h @@ -48,7 +48,6 @@ public: virtual int findLastIndex(qint64 endTime) const = 0; QVector rowOffsets; - QString name; QmlProfilerModelManager *modelManager; int modelId; bool expanded; diff --git a/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp b/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp index cc6b1d8296c..54f5a8ff69e 100644 --- a/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp @@ -61,9 +61,8 @@ private: }; PaintEventsModelProxy::PaintEventsModelProxy(QObject *parent) - : AbstractTimelineModel(new PaintEventsModelProxyPrivate, - QLatin1String("PaintEventsModelProxy"), tr("Animations"), - QmlDebug::Event, QmlDebug::MaximumRangeType, parent) + : AbstractTimelineModel(new PaintEventsModelProxyPrivate, tr("Animations"), QmlDebug::Event, + QmlDebug::MaximumRangeType, parent) { Q_D(PaintEventsModelProxy); d->maxGuiThreadAnimations = d->maxRenderThreadAnimations = 0; diff --git a/src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp b/src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp index 63e033be015..0bbad005867 100644 --- a/src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp @@ -63,9 +63,8 @@ private: }; RangeTimelineModel::RangeTimelineModel(QmlDebug::RangeType rangeType, QObject *parent) - : AbstractTimelineModel(new RangeTimelineModelPrivate, - QLatin1String("RangeTimelineModel"), categoryLabel(rangeType), - QmlDebug::MaximumMessage, rangeType, parent) + : AbstractTimelineModel(new RangeTimelineModelPrivate, categoryLabel(rangeType), + QmlDebug::MaximumMessage, rangeType, parent) { Q_D(RangeTimelineModel); d->seenPaintEvent = false;