diff options
author | Christiaan Janssen <christiaan.janssen@digia.com> | 2013-07-11 15:05:04 +0200 |
---|---|---|
committer | Christiaan Janssen <christiaan.janssen@digia.com> | 2013-08-01 18:02:13 +0300 |
commit | adcb00a4c36bdaea8ec73d3784e0a617bf615127 (patch) | |
tree | 5dc96f203099a250538646de3eb9c7a60c2b6649 | |
parent | 832e2b8d39628c54e1b6f28333b8c6cd649fdb61 (diff) | |
download | qt-creator-adcb00a4c36bdaea8ec73d3784e0a617bf615127.tar.gz |
QmlProfiler: get location from details in Creation events
Change-Id: Ia9d03694a9f6b766c3c5ed453b0a6c3a4d4d6ced
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
-rw-r--r-- | plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp b/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp index b917020414..0d3285dfc4 100644 --- a/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp +++ b/plugins/qmlprofiler/qmlprofilerprocessedmodel.cpp @@ -44,7 +44,8 @@ QString getInitialDetails(const QmlProfilerSimpleModel::QmlEventData &event); QmlDebug::QmlEventLocation getLocation(const QmlProfilerSimpleModel::QmlEventData &event) { QmlDebug::QmlEventLocation eventLocation = event.location; - if (event.eventType == QmlDebug::Compiling && eventLocation.filename.isEmpty()) { + if ((event.eventType == QmlDebug::Creating || event.eventType == QmlDebug::Compiling) + && eventLocation.filename.isEmpty()) { eventLocation.filename = getInitialDetails(event); eventLocation.line = 1; eventLocation.column = 1; |