From 19d20d26aa2a1d7f301a8f9bd63930706fddaa99 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 28 Jul 2015 13:44:32 +0200 Subject: [PATCH] QmlProfiler: Don't show progress bar while still recording. We can receive data while recording now. The progress bar is not helpful, though, as it doesn't tell us how much data we have received. It's better to disable it until the recording is done. Change-Id: Icc567fd33607e0c9b011504a0c76a7d84163945a Reviewed-by: Joerg Bornemann --- src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp index 05dc7503b03..8943f100ac7 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp @@ -206,18 +206,18 @@ void QmlProfilerStateWidget::showText(const QString &text, bool showProgress) void QmlProfilerStateWidget::updateDisplay() { - // When datamodel is acquiring data - if (!d->loadingDone && !d->emptyList && !d->appKilled) { - showText(tr("Loading data"), true); - return; - } - // When application is being profiled if (d->isRecording) { showText(tr("Profiling application")); return; } + // When datamodel is acquiring data + if (!d->loadingDone && !d->emptyList && !d->appKilled) { + showText(tr("Loading data"), true); + return; + } + // After profiling, there is an empty trace if (d->traceAvailable && d->loadingDone && d->emptyList) { showText(tr("No QML events recorded"));