aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofilerextension/pixmapcachemodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-09-08 18:33:02 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-09-15 12:29:13 +0300
commit4f0e7208933d502804d070bceec19f6396d931bb (patch)
treee2acf20762d25946dc4cf8115804b905cba65302 /plugins/qmlprofilerextension/pixmapcachemodel.cpp
parent2360ecb657e4563179ed898e4201a3fd426a200f (diff)
Report supported features from timeline models
Also add a stub input events model to represent that feature. Change-Id: Idd05b9452b7c6920779e72966ce62c0a1decaeef Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'plugins/qmlprofilerextension/pixmapcachemodel.cpp')
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.cpp8
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);