Commit 2a00002e authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: eliminate redundant isEmpty() methods



Change-Id: I05a82b0620a739d27478501ab43d2ac23839a811
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 55f28b97
......@@ -58,6 +58,11 @@ QString AbstractTimelineModel::name() const
return m_name;
}
bool AbstractTimelineModel::isEmpty() const
{
return count() == 0;
}
qint64 AbstractTimelineModel::traceStartTime() const
{
return m_modelManager->traceTime()->startTime();
......
......@@ -54,7 +54,7 @@ public:
QString name() const;
virtual int count() const = 0;
virtual bool isEmpty() const = 0;
bool isEmpty() const;
virtual bool eventAccepted(const QmlProfilerSimpleModel::QmlEventData &event) const = 0;
......
......@@ -145,11 +145,6 @@ void PaintEventsModelProxy::loadData()
/////////////////// QML interface
bool PaintEventsModelProxy::isEmpty() const
{
return count() == 0;
}
int PaintEventsModelProxy::count() const
{
return d->count();
......
......@@ -67,8 +67,6 @@ public:
Q_INVOKABLE int count() const;
void clear();
bool isEmpty() const;
Q_INVOKABLE qint64 lastTimeMark() const;
Q_INVOKABLE bool expanded(int category) const;
......
......@@ -289,11 +289,6 @@ void BasicTimelineModel::BasicTimelineModelPrivate::computeRowStarts()
/////////////////// QML interface
bool BasicTimelineModel::isEmpty() const
{
return count() == 0;
}
int BasicTimelineModel::count() const
{
return d->count();
......
......@@ -88,8 +88,6 @@ public:
// QML interface
bool isEmpty() const;
Q_INVOKABLE qint64 lastTimeMark() const;
Q_INVOKABLE bool expanded(int category) const;
......
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