From 5b1bfc102fccd4e57893b34bf2b0a14ba6a9f577 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 14 Nov 2020 22:35:31 +0100 Subject: Make StateEventBase Q_GADGET too To align with the two other base event classes (Event and RoomEvent). --- lib/events/stateevent.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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; @@ -128,3 +130,5 @@ private: std::unique_ptr> _prev; }; } // namespace Quotient +Q_DECLARE_METATYPE(Quotient::StateEventBase*) +Q_DECLARE_METATYPE(const Quotient::StateEventBase*) -- cgit v1.2.3