Commit ac40c26e authored by Ulf Hermann's avatar Ulf Hermann
Browse files

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: default avatarKai Koehne <kai.koehne@digia.com>
parent 5720c3da
...@@ -475,12 +475,14 @@ void QmlProfilerTraceView::profilerDataModelStateChanged() ...@@ -475,12 +475,14 @@ void QmlProfilerTraceView::profilerDataModelStateChanged()
{ {
switch (d->m_modelManager->state()) { switch (d->m_modelManager->state()) {
case QmlProfilerDataState::Empty: case QmlProfilerDataState::Empty:
d->m_mainView->hide();
emit enableToolbar(false); emit enableToolbar(false);
break; break;
case QmlProfilerDataState::AcquiringData: break; case QmlProfilerDataState::AcquiringData: break;
case QmlProfilerDataState::ProcessingData: break; case QmlProfilerDataState::ProcessingData: break;
case QmlProfilerDataState::Done: case QmlProfilerDataState::Done:
emit enableToolbar(true); emit enableToolbar(true);
d->m_mainView->show();
break; break;
default: default:
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment