diff options
-rw-r--r-- | lib/events/stateevent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/events/stateevent.h b/lib/events/stateevent.h index 400858db..20a85f83 100644 --- a/lib/events/stateevent.h +++ b/lib/events/stateevent.h @@ -33,6 +33,8 @@ inline QJsonObject basicStateEventJson(const QString& matrixTypeId, } class StateEventBase : public RoomEvent { + Q_GADGET + Q_PROPERTY(QString stateKey READ stateKey CONSTANT) public: using factory_t = EventFactory<StateEventBase>; @@ -128,3 +130,5 @@ private: std::unique_ptr<Prev<ContentT>> _prev; }; } // namespace Quotient +Q_DECLARE_METATYPE(Quotient::StateEventBase*) +Q_DECLARE_METATYPE(const Quotient::StateEventBase*) |