aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-07-02 11:41:29 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-07-02 15:37:00 +0300
commit8c260ba1a6a28fec32d3ea31dd6bbd92965da672 (patch)
tree33a88ca82c0443728bdc45886049722707b67bf9
parentfafe9b116c0edc2d4d9fc875ccfc53623a886a19 (diff)
Make it clear that the numbers in the pixmap scale are pixelsqp-v3.2.0-beta1
By showing the same numbers with units in the labels we avoid leading people to assume bytes as unit. Change-Id: I56d2ca5f21434fd24a305aebd434371438da7ebb Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
index ec4da50f10..ea297b04bc 100644
--- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp
+++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
@@ -209,6 +209,11 @@ const QVariantList PixmapCacheModel::getEventDetails(int index) const
if (ev->pixmapEventType != PixmapCacheCountChanged) {
d->addVP(result, tr("Duration"), ev->duration );
+ } else {
+ QVariantMap res;
+ res.insert(tr("Cache Size"), QVariant(QString::fromLatin1("%1 px")
+ .arg(ev->cacheSize)));
+ result << res;
}
{