From 410ae45c56b442be51b64aaaef3c1dafecbeca34 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@digia.com> Date: Tue, 3 Dec 2013 14:57:50 +0100 Subject: [PATCH] QmlProfiler: Make sure details for bindings are shown in Events pane React to a second changed() signal from the simple model that is emitted after the binding text has been retrieved from the local files. This will rebuild the whole model effectively twice ... ideally we'd just update the text, but it shouldn't be a performance problem, either. Change-Id: I71a47f0faddd3938711e2e190f1e9c961be343e4 Reviewed-by: Ulf Hermann <ulf.hermann@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com> --- src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp b/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp index d1be7cfdb38..f7f3e3053fe 100644 --- a/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp +++ b/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp @@ -96,11 +96,10 @@ void QmlProfilerEventsModelProxy::limitToRange(qint64 rangeStart, qint64 rangeEn void QmlProfilerEventsModelProxy::dataChanged() { - if (d->modelManager->state() == QmlProfilerDataState::ProcessingData) - loadData(); - if (d->modelManager->state() == QmlProfilerDataState::Empty) clear(); + else + loadData(); } QSet<QString> QmlProfilerEventsModelProxy::eventsInBindingLoop() const -- GitLab