aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-11-18 13:13:46 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-11-19 12:16:35 +0000
commitd58b714a3a92437ccf923c77575d74e10ed69c3e (patch)
treed91020027a8b596c44c7aa4d39d69634f989f88f /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
parent4416acc16d2a614e3bf1377052da8f66902c52d2 (diff)
QmlProfiler: Debug messages are no QML events ...
In particular, they can also occur if we're not AcquiringData. Change-Id: Ia310206ee15973fc5b2fa1c607d7c9a48b6f435f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
index 90e035b86b5..8945675e051 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
@@ -296,6 +296,14 @@ void QmlProfilerModelManager::addQmlEvent(QmlDebug::Message message,
ndata1, ndata2, ndata3, ndata4, ndata5);
}
+void QmlProfilerModelManager::addDebugMessage(QtMsgType type, qint64 timestamp, const QString &text,
+ const QmlDebug::QmlEventLocation &location)
+{
+ if (state() == AcquiringData)
+ d->model->addQmlEvent(QmlDebug::DebugMessage, QmlDebug::MaximumRangeType, type, timestamp,
+ 0, text, location, 0, 0, 0, 0, 0);
+}
+
void QmlProfilerModelManager::acquiringDone()
{
QTC_ASSERT(state() == AcquiringData, /**/);