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>
This commit is contained in:
Kai Koehne
2013-12-03 14:57:50 +01:00
parent 56256a208a
commit 410ae45c56

View File

@@ -96,11 +96,10 @@ void QmlProfilerEventsModelProxy::limitToRange(qint64 rangeStart, qint64 rangeEn
void QmlProfilerEventsModelProxy::dataChanged() void QmlProfilerEventsModelProxy::dataChanged()
{ {
if (d->modelManager->state() == QmlProfilerDataState::ProcessingData)
loadData();
if (d->modelManager->state() == QmlProfilerDataState::Empty) if (d->modelManager->state() == QmlProfilerDataState::Empty)
clear(); clear();
else
loadData();
} }
QSet<QString> QmlProfilerEventsModelProxy::eventsInBindingLoop() const QSet<QString> QmlProfilerEventsModelProxy::eventsInBindingLoop() const