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 @@
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);
......
......@@ -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:
......
......@@ -48,7 +48,6 @@ public:
virtual int findLastIndex(qint64 endTime) const = 0;
QVector<int> rowOffsets;
QString name;
QmlProfilerModelManager *modelManager;
int modelId;
bool expanded;
......
......@@ -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;
......
......@@ -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;
......
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