diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-06-12 16:03:40 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-06-17 17:53:25 +0300 |
commit | 14babc53952589b9d9079720af6c4bb6ccb00265 (patch) | |
tree | bd35dafca61d6ee65fc2fa2e81ad685143126e7b | |
parent | 8e4445302ade7e1327b21f92db1dde1b81b26724 (diff) | |
download | qt-creator-14babc53952589b9d9079720af6c4bb6ccb00265.tar.gz |
Derive from AbstractTimelineModel instead of SingleCategoryTimelineModel
Change-Id: I720f067956417519e58fac9d92292edd7968356d
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
6 files changed, 16 insertions, 16 deletions
diff --git a/plugins/qmlprofilerextension/memoryusagemodel.cpp b/plugins/qmlprofilerextension/memoryusagemodel.cpp index 409b48953a..5d9e0329e8 100644 --- a/plugins/qmlprofilerextension/memoryusagemodel.cpp +++ b/plugins/qmlprofilerextension/memoryusagemodel.cpp @@ -20,7 +20,7 @@ #include "qmldebug/qmlprofilereventtypes.h" #include "qmlprofiler/qmlprofilermodelmanager.h" #include "qmlprofiler/sortedtimelinemodel.h" -#include "qmlprofiler/singlecategorytimelinemodel_p.h" +#include "qmlprofiler/abstracttimelinemodel_p.h" #include <QDebug> @@ -31,7 +31,7 @@ using namespace QmlProfiler; class MemoryUsageModel::MemoryUsageModelPrivate : public SortedTimelineModel<MemoryAllocation, - SingleCategoryTimelineModel::SingleCategoryTimelineModelPrivate> + AbstractTimelineModel::AbstractTimelineModelPrivate> { public: static QString memoryTypeName(int type); @@ -42,7 +42,7 @@ private: }; MemoryUsageModel::MemoryUsageModel(QObject *parent) - : SingleCategoryTimelineModel(new MemoryUsageModelPrivate(), + : AbstractTimelineModel(new MemoryUsageModelPrivate(), QLatin1String("MemoryUsageTimelineModel"), QLatin1String("Memory Usage"), QmlDebug::MemoryAllocation, QmlDebug::MaximumRangeType, parent) diff --git a/plugins/qmlprofilerextension/memoryusagemodel.h b/plugins/qmlprofilerextension/memoryusagemodel.h index a4250d767a..ce7fdb8b74 100644 --- a/plugins/qmlprofilerextension/memoryusagemodel.h +++ b/plugins/qmlprofilerextension/memoryusagemodel.h @@ -20,7 +20,7 @@ #define MEMORYUSAGEMODEL_H #include "qmlprofiler/qmlprofilertimelinemodelproxy.h" -#include "qmlprofiler/singlecategorytimelinemodel.h" +#include "qmlprofiler/abstracttimelinemodel.h" #include "qmlprofiler/qmlprofilerdatamodel.h" #include <QStringList> @@ -29,7 +29,7 @@ namespace QmlProfilerExtension { namespace Internal { -class MemoryUsageModel : public QmlProfiler::SingleCategoryTimelineModel +class MemoryUsageModel : public QmlProfiler::AbstractTimelineModel { Q_OBJECT public: diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index 9e246cbea6..da2a306130 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp +++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp @@ -20,7 +20,7 @@ #include "qmldebug/qmlprofilereventtypes.h" #include "qmlprofiler/qmlprofilermodelmanager.h" #include "qmlprofiler/sortedtimelinemodel.h" -#include "qmlprofiler/singlecategorytimelinemodel_p.h" +#include "qmlprofiler/abstracttimelinemodel_p.h" #include <QDebug> #include <QSize> @@ -64,7 +64,7 @@ struct Pixmap { class PixmapCacheModel::PixmapCacheModelPrivate : public SortedTimelineModel<PixmapCacheEvent, - SingleCategoryTimelineModel::SingleCategoryTimelineModelPrivate> + AbstractTimelineModel::AbstractTimelineModelPrivate> { public: void computeMaxCacheSize(); @@ -83,7 +83,7 @@ private: }; PixmapCacheModel::PixmapCacheModel(QObject *parent) - : SingleCategoryTimelineModel(new PixmapCacheModelPrivate(), + : AbstractTimelineModel(new PixmapCacheModelPrivate(), QLatin1String("PixmapCacheTimeLineModel"), QLatin1String("Pixmap Cache"), QmlDebug::PixmapCacheEvent, QmlDebug::MaximumRangeType, parent) diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.h b/plugins/qmlprofilerextension/pixmapcachemodel.h index 036f3c0d49..688be42a1c 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.h +++ b/plugins/qmlprofilerextension/pixmapcachemodel.h @@ -20,7 +20,7 @@ #define PIXMAPCACHEMODEL_H #include "qmlprofiler/qmlprofilertimelinemodelproxy.h" -#include "qmlprofiler/singlecategorytimelinemodel.h" +#include "qmlprofiler/abstracttimelinemodel.h" #include "qmlprofiler/qmlprofilerdatamodel.h" #include <QStringList> @@ -29,7 +29,7 @@ namespace QmlProfilerExtension { namespace Internal { -class PixmapCacheModel : public QmlProfiler::SingleCategoryTimelineModel +class PixmapCacheModel : public QmlProfiler::AbstractTimelineModel { Q_OBJECT public: diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp index 738eecaf47..46d5340eae 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp @@ -20,7 +20,7 @@ #include "qmldebug/qmlprofilereventtypes.h" #include "qmlprofiler/qmlprofilermodelmanager.h" #include "qmlprofiler/sortedtimelinemodel.h" -#include "qmlprofiler/singlecategorytimelinemodel_p.h" +#include "qmlprofiler/abstracttimelinemodel_p.h" #include <QCoreApplication> #include <QDebug> @@ -54,7 +54,7 @@ enum SceneGraphCategoryType { class SceneGraphTimelineModel::SceneGraphTimelineModelPrivate : public SortedTimelineModel<SceneGraphTimelineModel::SceneGraphEvent, - SingleCategoryTimelineModel::SingleCategoryTimelineModelPrivate> + AbstractTimelineModel::AbstractTimelineModelPrivate> { public: void addVP(QVariantList &l, QString label, qint64 time) const; @@ -63,7 +63,7 @@ private: }; SceneGraphTimelineModel::SceneGraphTimelineModel(QObject *parent) - : SingleCategoryTimelineModel(new SceneGraphTimelineModelPrivate, + : AbstractTimelineModel(new SceneGraphTimelineModelPrivate, QLatin1String("SceneGraphTimeLineModel"), tr("Scene Graph"), QmlDebug::SceneGraphFrame, QmlDebug::MaximumRangeType, parent) { @@ -150,7 +150,7 @@ const QVariantList SceneGraphTimelineModel::getEventDetails(int index) const Q_D(const SceneGraphTimelineModel); QVariantList result; const SortedTimelineModel<SceneGraphEvent, - SingleCategoryTimelineModel::SingleCategoryTimelineModelPrivate>::Range *ev = + AbstractTimelineModel::AbstractTimelineModelPrivate>::Range *ev = &d->range(index); { diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h index 3b2abeeb7a..bd0d74243b 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h @@ -19,7 +19,7 @@ #ifndef SCENEGRAPHTIMELINEMODEL_H #define SCENEGRAPHTIMELINEMODEL_H -#include "qmlprofiler/singlecategorytimelinemodel.h" +#include "qmlprofiler/abstracttimelinemodel.h" #include "qmlprofiler/qmlprofilermodelmanager.h" #include "qmlprofiler/qmlprofilerdatamodel.h" @@ -31,7 +31,7 @@ namespace Internal { #define timingFieldCount 16 -class SceneGraphTimelineModel : public QmlProfiler::SingleCategoryTimelineModel +class SceneGraphTimelineModel : public QmlProfiler::AbstractTimelineModel { Q_OBJECT public: |