diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-10-23 17:49:11 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-05 08:42:38 +0000 |
commit | 00f0e00fb22065e0e4d5702bb851887c7d935e92 (patch) | |
tree | 32b566760c711d2f8a7a9eda655c1777d593ad6b /plugins/qmlprofiler/inputeventsmodel.h | |
parent | 6b7bcd04605b72f00ef92a8983a6f913ab753c4e (diff) |
Add some more information to input events, if available
Just "Mouse" or "Key" is not very helpful.
Change-Id: Ia5db293fb957242aa0a7a84440cd1632d2babe8a
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'plugins/qmlprofiler/inputeventsmodel.h')
-rw-r--r-- | plugins/qmlprofiler/inputeventsmodel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/inputeventsmodel.h b/plugins/qmlprofiler/inputeventsmodel.h index 43a9dc4498c..8c0ff17216a 100644 --- a/plugins/qmlprofiler/inputeventsmodel.h +++ b/plugins/qmlprofiler/inputeventsmodel.h @@ -32,6 +32,14 @@ protected: bool accepted(const QmlProfiler::QmlProfilerDataModel::QmlEventTypeData &event) const; public: + struct InputEvent { + InputEvent(QmlDebug::InputEventType type = QmlDebug::MaximumInputEventType, int a = 0, + int b = 0); + QmlDebug::InputEventType type; + int a; + int b; + }; + InputEventsModel(QmlProfiler::QmlProfilerModelManager *manager, QObject *parent = 0); int typeId(int index) const; @@ -47,6 +55,7 @@ private: int m_keyTypeId; int m_mouseTypeId; + QVector<InputEvent> m_data; }; } |