diff options
author | Robert Loehning <robert.loehning@qt.io> | 2018-07-13 14:02:09 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2018-07-18 15:13:50 +0000 |
commit | 8fefe0c5914755d4d2fd60adaab3e800010eb28d (patch) | |
tree | 1a5df7dc1dc239f96c908f7b589e53f89504460b /src/plugins/qmlprofiler/memoryusagemodel.cpp | |
parent | 5b6ab4ced2246ce5a3a37df99bad837e1189a7f6 (diff) |
QmlProfiler: Fix place markers
Using the numerus form requires "%n".
Change-Id: I18e32795d6f4f58e9b531e89572351d6520e7e33
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/memoryusagemodel.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.cpp b/src/plugins/qmlprofiler/memoryusagemodel.cpp index fa7c258b002..1fcfc4631f1 100644 --- a/src/plugins/qmlprofiler/memoryusagemodel.cpp +++ b/src/plugins/qmlprofiler/memoryusagemodel.cpp @@ -116,16 +116,14 @@ QVariantMap MemoryUsageModel::details(int index) const else result.insert(QLatin1String("displayName"), tr("Memory Freed")); - result.insert(tr("Total"), tr("%1 byte(s)", nullptr, toSameSignedInt(ev->size)).arg(ev->size)); + result.insert(tr("Total"), tr("%n byte(s)", nullptr, toSameSignedInt(ev->size))); if (ev->allocations > 0) { - result.insert(tr("Allocated"), tr("%1 byte(s)", nullptr, toSameSignedInt(ev->allocated)) - .arg(ev->allocated)); + result.insert(tr("Allocated"), tr("%n byte(s)", nullptr, toSameSignedInt(ev->allocated))); result.insert(tr("Allocations"), ev->allocations); } if (ev->deallocations > 0) { result.insert(tr("Deallocated"), - tr("%1 byte(s)", nullptr, toSameSignedInt(-ev->deallocated)) - .arg(-ev->deallocated)); + tr("%n byte(s)", nullptr, toSameSignedInt(-ev->deallocated))); result.insert(tr("Deallocations"), ev->deallocations); } QString memoryTypeName; |