forked from qt-creator/qt-creator
Eliminate redundant name() methods
Change-Id: Icaa03eee0650481309e073c51b1a5a1b98820b41 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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;
|
||||||
|
@@ -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();
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user