summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-02-14 13:28:53 +0100
committerUlf Hermann <ulf.hermann@digia.com>2014-02-18 15:48:40 +0200
commitff75cbda0225e6d0e01c99be825418d1d2479b42 (patch)
tree2042cc2104af26f0e4b1f3a6a3fb48b961cd4329
parent79ea5d26a6b6e7fe7d57f6287abca4d3d4c569d8 (diff)
downloadqt-creator-ff75cbda0225e6d0e01c99be825418d1d2479b42.tar.gz
Eliminate redundant name() methods
Change-Id: Icaa03eee0650481309e073c51b1a5a1b98820b41 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.cpp8
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.h1
-rw-r--r--plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp8
-rw-r--r--plugins/qmlprofilerextension/scenegraphtimelinemodel.h1
4 files changed, 4 insertions, 14 deletions
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
index f960da15b8..e943150dde 100644
--- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp
+++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
@@ -54,7 +54,8 @@ public:
};
PixmapCacheModel::PixmapCacheModel(QObject *parent)
- : AbstractTimelineModel(parent), d(new PixmapCacheModelPrivate(this))
+ : AbstractTimelineModel(QLatin1String("PixmapCacheTimeLineModel"), parent),
+ d(new PixmapCacheModelPrivate(this))
{
d->collapsedRowCount = 1;
d->expandedRowCount = 1;
@@ -64,11 +65,6 @@ PixmapCacheModel::~PixmapCacheModel()
{
}
-QString PixmapCacheModel::name() const
-{
- return QLatin1String("PixmapCacheTimeLineModel");
-}
-
int PixmapCacheModel::count() const
{
return d->count();
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.h b/plugins/qmlprofilerextension/pixmapcachemodel.h
index a73f21be16..c2ef9aa1cd 100644
--- a/plugins/qmlprofilerextension/pixmapcachemodel.h
+++ b/plugins/qmlprofilerextension/pixmapcachemodel.h
@@ -60,7 +60,6 @@ public:
// void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager);
- QString name() const;
int count() const;
bool isEmpty() const;
diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
index 559fd441d0..2b2aabb7c4 100644
--- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
+++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
@@ -64,7 +64,8 @@ public:
};
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
{
return d->count();
diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
index 87421423be..6f2da1bfc8 100644
--- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
+++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
@@ -48,7 +48,6 @@ public:
// void setModelManager(QmlProfiler::Internal::QmlProfilerModelManager *modelManager);
- QString name() const;
int count() const;
bool isEmpty() const;