summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-12-03 14:57:50 +0100
committerKai Koehne <kai.koehne@digia.com>2013-12-12 12:36:53 +0100
commit410ae45c56b442be51b64aaaef3c1dafecbeca34 (patch)
treece482943ece43e67d65341deb8cb1e1e2a27ff8a /src/plugins
parent56256a208a8c6ff3290a54d82b1eeadbec3477d0 (diff)
downloadqt-creator-410ae45c56b442be51b64aaaef3c1dafecbeca34.tar.gz
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>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp b/src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp
index d1be7cfdb3..f7f3e3053f 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