aboutsummaryrefslogtreecommitdiff
path: root/lib/events/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/event.cpp')
-rw-r--r--lib/events/event.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp
index 2cad1462..fd6e3939 100644
--- a/lib/events/event.cpp
+++ b/lib/events/event.cpp
@@ -36,6 +36,11 @@ event_type_t EventTypeRegistry::initializeTypeId(event_mtype_t matrixTypeId)
return id;
}
+QString EventTypeRegistry::getMatrixType(event_type_t typeId)
+{
+ return typeId < get().eventTypes.size() ? get().eventTypes[typeId] : "";
+}
+
Event::Event(Type type, const QJsonObject& json)
: _type(type), _json(json)
{