diff options
Diffstat (limited to 'plugins/qmlprofilerextension/pixmapcachemodel.cpp')
-rw-r--r-- | plugins/qmlprofilerextension/pixmapcachemodel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index 5be3b6cc27..fff5cab4e0 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp +++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp @@ -80,7 +80,8 @@ private: }; PixmapCacheModel::PixmapCacheModel(QObject *parent) - : AbstractTimelineModel(new PixmapCacheModelPrivate(), QLatin1String("Pixmap Cache"), + : AbstractTimelineModel(new PixmapCacheModelPrivate(), + tr(QmlProfilerModelManager::featureName(QmlDebug::ProfilePixmapCache)), QmlDebug::PixmapCacheEvent, QmlDebug::MaximumRangeType, parent) { Q_D(PixmapCacheModel); @@ -88,6 +89,11 @@ PixmapCacheModel::PixmapCacheModel(QObject *parent) d->maxCacheSize = 1; } +quint64 PixmapCacheModel::features() const +{ + return 1 << QmlDebug::ProfilePixmapCache; +} + int PixmapCacheModel::rowCount() const { Q_D(const PixmapCacheModel); |