aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-14 22:35:31 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-14 22:35:31 +0100
commit5b1bfc102fccd4e57893b34bf2b0a14ba6a9f577 (patch)
tree356809883376cffc42a504c14113108636b96d1d /lib/events
parentc919c021be42228ff615e581a2f80e649c992807 (diff)
downloadlibquotient-5b1bfc102fccd4e57893b34bf2b0a14ba6a9f577.tar.gz
libquotient-5b1bfc102fccd4e57893b34bf2b0a14ba6a9f577.zip
Make StateEventBase Q_GADGET too
To align with the two other base event classes (Event and RoomEvent).
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/stateevent.h4
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*)