Commit be62804e authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Remove name from abstracttimelinemodel



It isn't used anywhere.

Change-Id: Ie69328b85d0b7de4fc2ade753567a8a24e3e2a03
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 1f46fca3
...@@ -33,13 +33,12 @@ ...@@ -33,13 +33,12 @@
namespace QmlProfiler { namespace QmlProfiler {
AbstractTimelineModel::AbstractTimelineModel(AbstractTimelineModelPrivate *dd, AbstractTimelineModel::AbstractTimelineModel(AbstractTimelineModelPrivate *dd,
const QString &name, const QString &label, QmlDebug::Message message, const QString &label, QmlDebug::Message message, QmlDebug::RangeType rangeType,
QmlDebug::RangeType rangeType, QObject *parent) : QObject *parent) :
QObject(parent), d_ptr(dd) QObject(parent), d_ptr(dd)
{ {
Q_D(AbstractTimelineModel); Q_D(AbstractTimelineModel);
d->q_ptr = this; d->q_ptr = this;
d->name = name;
d->modelId = 0; d->modelId = 0;
d->modelManager = 0; d->modelManager = 0;
d->expanded = false; d->expanded = false;
...@@ -62,12 +61,6 @@ void AbstractTimelineModel::setModelManager(QmlProfilerModelManager *modelManage ...@@ -62,12 +61,6 @@ void AbstractTimelineModel::setModelManager(QmlProfilerModelManager *modelManage
d->modelId = d->modelManager->registerModelProxy(); d->modelId = d->modelManager->registerModelProxy();
} }
QString AbstractTimelineModel::name() const
{
Q_D(const AbstractTimelineModel);
return d->name;
}
int AbstractTimelineModel::count() const int AbstractTimelineModel::count() const
{ {
Q_D(const AbstractTimelineModel); Q_D(const AbstractTimelineModel);
......
...@@ -50,7 +50,6 @@ public: ...@@ -50,7 +50,6 @@ public:
// Trivial methods implemented by the abstract model itself // Trivial methods implemented by the abstract model itself
void setModelManager(QmlProfilerModelManager *modelManager); void setModelManager(QmlProfilerModelManager *modelManager);
QString name() const;
bool isEmpty() const; bool isEmpty() const;
// Methods are directly passed on to the private model and relying on its virtual methods. // Methods are directly passed on to the private model and relying on its virtual methods.
...@@ -124,9 +123,9 @@ protected: ...@@ -124,9 +123,9 @@ protected:
return QColor::fromHsl(hue % 360, Saturation, Lightness); return QColor::fromHsl(hue % 360, Saturation, Lightness);
} }
explicit AbstractTimelineModel(AbstractTimelineModelPrivate *dd, const QString &name, explicit AbstractTimelineModel(AbstractTimelineModelPrivate *dd, const QString &label,
const QString &label, QmlDebug::Message message, QmlDebug::Message message, QmlDebug::RangeType rangeType,
QmlDebug::RangeType rangeType, QObject *parent); QObject *parent);
AbstractTimelineModelPrivate *d_ptr; AbstractTimelineModelPrivate *d_ptr;
protected slots: protected slots:
......
...@@ -48,7 +48,6 @@ public: ...@@ -48,7 +48,6 @@ public:
virtual int findLastIndex(qint64 endTime) const = 0; virtual int findLastIndex(qint64 endTime) const = 0;
QVector<int> rowOffsets; QVector<int> rowOffsets;
QString name;
QmlProfilerModelManager *modelManager; QmlProfilerModelManager *modelManager;
int modelId; int modelId;
bool expanded; bool expanded;
......
...@@ -61,9 +61,8 @@ private: ...@@ -61,9 +61,8 @@ private:
}; };
PaintEventsModelProxy::PaintEventsModelProxy(QObject *parent) PaintEventsModelProxy::PaintEventsModelProxy(QObject *parent)
: AbstractTimelineModel(new PaintEventsModelProxyPrivate, : AbstractTimelineModel(new PaintEventsModelProxyPrivate, tr("Animations"), QmlDebug::Event,
QLatin1String("PaintEventsModelProxy"), tr("Animations"), QmlDebug::MaximumRangeType, parent)
QmlDebug::Event, QmlDebug::MaximumRangeType, parent)
{ {
Q_D(PaintEventsModelProxy); Q_D(PaintEventsModelProxy);
d->maxGuiThreadAnimations = d->maxRenderThreadAnimations = 0; d->maxGuiThreadAnimations = d->maxRenderThreadAnimations = 0;
......
...@@ -63,9 +63,8 @@ private: ...@@ -63,9 +63,8 @@ private:
}; };
RangeTimelineModel::RangeTimelineModel(QmlDebug::RangeType rangeType, QObject *parent) RangeTimelineModel::RangeTimelineModel(QmlDebug::RangeType rangeType, QObject *parent)
: AbstractTimelineModel(new RangeTimelineModelPrivate, : AbstractTimelineModel(new RangeTimelineModelPrivate, categoryLabel(rangeType),
QLatin1String("RangeTimelineModel"), categoryLabel(rangeType), QmlDebug::MaximumMessage, rangeType, parent)
QmlDebug::MaximumMessage, rangeType, parent)
{ {
Q_D(RangeTimelineModel); Q_D(RangeTimelineModel);
d->seenPaintEvent = false; d->seenPaintEvent = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment