diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-01-09 17:23:41 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-01-14 10:14:40 +0100 |
commit | ac40c26eaf823fde3537147c882b3a1cd4820bf3 (patch) | |
tree | c87c9081beb7be525bb58fec07c5d5823cb8ffe2 /src | |
parent | 5720c3da2e50796698dfe5d7c16c049c99f150d5 (diff) |
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 <kai.koehne@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertraceview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp index 54a6084ca0..9246910498 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; |