Eliminate redundant name() methods

Change-Id: Icaa03eee0650481309e073c51b1a5a1b98820b41
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-02-14 13:28:53 +01:00
parent 79ea5d26a6
commit ff75cbda02
4 changed files with 4 additions and 14 deletions

View File

@@ -54,7 +54,8 @@ public:
}; };
PixmapCacheModel::PixmapCacheModel(QObject *parent) PixmapCacheModel::PixmapCacheModel(QObject *parent)
: AbstractTimelineModel(parent), d(new PixmapCacheModelPrivate(this)) : AbstractTimelineModel(QLatin1String("PixmapCacheTimeLineModel"), parent),
d(new PixmapCacheModelPrivate(this))
{ {
d->collapsedRowCount = 1; d->collapsedRowCount = 1;
d->expandedRowCount = 1; d->expandedRowCount = 1;
@@ -64,11 +65,6 @@ PixmapCacheModel::~PixmapCacheModel()
{ {
} }
QString PixmapCacheModel::name() const
{
return QLatin1String("PixmapCacheTimeLineModel");
}
int PixmapCacheModel::count() const int PixmapCacheModel::count() const
{ {
return d->count(); return d->count();

View File

@@ -60,7 +60,6 @@ public:
// void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager); // void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager);
QString name() const;
int count() const; int count() const;
bool isEmpty() const; bool isEmpty() const;

View File

@@ -64,7 +64,8 @@ public:
}; };
SceneGraphTimelineModel::SceneGraphTimelineModel(QObject *parent) SceneGraphTimelineModel::SceneGraphTimelineModel(QObject *parent)
: AbstractTimelineModel(parent), d(new SceneGraphTimelineModelPrivate(this)) : AbstractTimelineModel(QLatin1String("SceneGraphTimeLineModel"), parent),
d(new SceneGraphTimelineModelPrivate(this))
{ {
} }
@@ -72,11 +73,6 @@ SceneGraphTimelineModel::~SceneGraphTimelineModel()
{ {
} }
QString SceneGraphTimelineModel::name() const
{
return QLatin1String("SceneGraphTimeLineModel");
}
int SceneGraphTimelineModel::count() const int SceneGraphTimelineModel::count() const
{ {
return d->count(); return d->count();

View File

@@ -48,7 +48,6 @@ public:
// void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager); // void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager);
QString name() const;
int count() const; int count() const;
bool isEmpty() const; bool isEmpty() const;