diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index fd199cab239..9e246cbea65 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp +++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp @@ -93,10 +93,9 @@ PixmapCacheModel::PixmapCacheModel(QObject *parent) d->maxCacheSize = 1; } -int PixmapCacheModel::categoryDepth(int categoryIndex) const +int PixmapCacheModel::rowCount() const { Q_D(const PixmapCacheModel); - Q_UNUSED(categoryIndex); if (isEmpty()) return 1; if (d->expanded) @@ -145,10 +144,9 @@ QString getFilenameOnly(QString absUrl) return absUrl; } -const QVariantList PixmapCacheModel::getLabelsForCategory(int category) const +const QVariantList PixmapCacheModel::getLabels() const { Q_D(const PixmapCacheModel); - Q_UNUSED(category); QVariantList result; if (d->expanded && !isEmpty()) { diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.h b/plugins/qmlprofilerextension/pixmapcachemodel.h index fdf20f51951..036f3c0d49b 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.h +++ b/plugins/qmlprofilerextension/pixmapcachemodel.h @@ -55,14 +55,14 @@ public: PixmapCacheModel(QObject *parent = 0); - Q_INVOKABLE int categoryDepth(int categoryIndex) const; + int rowCount() const; int getEventRow(int index) const; Q_INVOKABLE int getEventId(int index) const; Q_INVOKABLE QColor getColor(int index) const; Q_INVOKABLE float getHeight(int index) const; - Q_INVOKABLE const QVariantList getLabelsForCategory(int category) const; + const QVariantList getLabels() const; Q_INVOKABLE const QVariantList getEventDetails(int index) const; diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp index c4153fb740a..738eecaf473 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp @@ -69,9 +69,8 @@ SceneGraphTimelineModel::SceneGraphTimelineModel(QObject *parent) { } -int SceneGraphTimelineModel::categoryDepth(int categoryIndex) const +int SceneGraphTimelineModel::rowCount() const { - Q_UNUSED(categoryIndex); if (isEmpty()) return 1; return 3; @@ -117,10 +116,9 @@ QString labelForSGType(int t) } } -const QVariantList SceneGraphTimelineModel::getLabelsForCategory(int category) const +const QVariantList SceneGraphTimelineModel::getLabels() const { Q_D(const SceneGraphTimelineModel); - Q_UNUSED(category); QVariantList result; if (d->expanded && !isEmpty()) { diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h index 50e46193533..3b2abeeb7aa 100644 --- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h +++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h @@ -43,13 +43,13 @@ public: SceneGraphTimelineModel(QObject *parent = 0); - Q_INVOKABLE int categoryDepth(int categoryIndex) const; + int rowCount() const; int getEventRow(int index) const; Q_INVOKABLE int getEventId(int index) const; Q_INVOKABLE QColor getColor(int index) const; - Q_INVOKABLE const QVariantList getLabelsForCategory(int category) const; + const QVariantList getLabels() const; Q_INVOKABLE const QVariantList getEventDetails(int index) const;