From ac40c26eaf823fde3537147c882b3a1cd4820bf3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 9 Jan 2014 17:23:41 +0100 Subject: [PATCH] QmlProfiler: Hide timline and show loading indicators when profiling This is a temporary fix to work around the fact that the profiler's loading indicator won't show on top of the timeline view. It's not particularly beautiful but at least the UI doesn't just "hang" anymore. A final solution has to be provided in qtdeclarative by allowing widgets to be placed on top of QML scenes. In principle it's also possible to change the loading indicators to be actual windows and by doing that have them stay on top, but the result would be very messy. Change-Id: Ic774b0792786d7d278da5ba0beda4531f0dba77d Reviewed-by: Kai Koehne --- src/plugins/qmlprofiler/qmlprofilertraceview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp index 54a6084ca00..92469104989 100644 --- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp @@ -475,12 +475,14 @@ void QmlProfilerTraceView::profilerDataModelStateChanged() { switch (d->m_modelManager->state()) { case QmlProfilerDataState::Empty: + d->m_mainView->hide(); emit enableToolbar(false); break; case QmlProfilerDataState::AcquiringData: break; case QmlProfilerDataState::ProcessingData: break; case QmlProfilerDataState::Done: emit enableToolbar(true); + d->m_mainView->show(); break; default: break;