From 8c260ba1a6a28fec32d3ea31dd6bbd92965da672 Mon Sep 17 00:00:00 2001
From: Ulf Hermann <ulf.hermann@digia.com>
Date: Wed, 2 Jul 2014 11:41:29 +0200
Subject: [PATCH] Make it clear that the numbers in the pixmap scale are pixels

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>
---
 plugins/qmlprofilerextension/pixmapcachemodel.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
index ec4da50f10f..ea297b04bc1 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;
     }
 
     {
-- 
GitLab