forked from qt-creator/qt-creator
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 <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user