aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/qmlprofilerclient.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-21 17:48:58 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-09 18:31:47 +0000
commit08533d26596bb56f971081e2951d48ca26ff90a5 (patch)
tree1d1e68262813e5e6d371216a6fae6116dbb60580 /tools/qmlprofiler/qmlprofilerclient.cpp
parent834f9c76151857b8e8bc07341f592187fafa11dc (diff)
qmlprofiler: Record input events
Change-Id: Ib6413d97638b192377d7dbeb19ed0c2f733a06a1 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.cpp')
-rw-r--r--tools/qmlprofiler/qmlprofilerclient.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.cpp b/tools/qmlprofiler/qmlprofilerclient.cpp
index f6ac846668..4f06514d8d 100644
--- a/tools/qmlprofiler/qmlprofilerclient.cpp
+++ b/tools/qmlprofiler/qmlprofilerclient.cpp
@@ -141,7 +141,10 @@ void QmlProfilerClient::messageReceived(const QByteArray &data)
emit this->frame(time, frameRate, animationCount, threadId);
} else if (event == QQmlProfilerService::StartTrace) {
emit this->traceStarted(time);
- } else if (event < QQmlProfilerService::MaximumEventType) {
+ } else if (event == QQmlProfilerService::Key || event == QQmlProfilerService::Mouse) {
+ if (!(d->features & one << QQmlProfilerService::ProfileInputEvents))
+ return;
+ emit this->inputEvent((QQmlProfilerService::EventType)event, time);
}
} else if (messageType == QQmlProfilerService::Complete) {
emit complete();