summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2016-08-23 16:48:55 +0200
committerRobert Loehning <robert.loehning@qt.io>2016-08-23 16:31:24 +0000
commit2847e248e616a4dadd23e2f5c673e9a18edda4c6 (patch)
tree4fdac0d5828478703ce2fe7121e10edc70907fc9 /src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp
parented5adb286a80de3e7d70332aa581b8880a72b4ab (diff)
downloadqt-creator-2847e248e616a4dadd23e2f5c673e9a18edda4c6.tar.gz
QmlProfiler: Use numerous form
Change-Id: I93f58bb50933e44b350e8bca3d99c922c7a66237 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp
index fdf117c9c6..0652a0258c 100644
--- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp
@@ -111,7 +111,7 @@ void QmlProfilerStateWidget::updateDisplay()
// Heuristic to not show the number if the application will only send the events when it
// stops. The number is still > 0 then because we get some StartTrace etc.
uint numEvents = d->m_modelManager->numLoadedEvents();
- showText(numEvents > 256 ? tr("Profiling application: %1 events").arg(numEvents) :
+ showText(numEvents > 256 ? tr("Profiling application: %n events", 0, numEvents) :
tr("Profiling application"));
return;
}
@@ -131,16 +131,16 @@ void QmlProfilerStateWidget::updateDisplay()
} else if (d->m_profilerState->currentState() != QmlProfilerStateManager::Idle) {
if (state == QmlProfilerModelManager::AcquiringData) {
// we don't know how much more, so progress numbers are strange here
- showText(tr("Loading buffered data: %1 events")
- .arg(d->m_modelManager->numLoadedEvents()));
+ showText(tr("Loading buffered data: %n events", 0,
+ d->m_modelManager->numLoadedEvents()));
} else if (state == QmlProfilerModelManager::ClearingData) {
// when starting a second recording from the same process without aggregation
showText(tr("Clearing old trace"));
}
} else if (state == QmlProfilerModelManager::AcquiringData) {
// Application died before all data could be read
- showText(tr("Loading offline data: %1 events")
- .arg(d->m_modelManager->numLoadedEvents()));
+ showText(tr("Loading offline data: %n events", 0,
+ d->m_modelManager->numLoadedEvents()));
} else if (state == QmlProfilerModelManager::ClearingData) {
showText(tr("Clearing old trace"));
}