diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:23:42 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:23:42 +0200 |
commit | fd42d1dbd29800ef53ab9997c948f39a92aa8bff (patch) | |
tree | 6f0c96abb569dac59347e4f6f6aae54ebda1705f /lib | |
parent | 395f3758e810fed6cd276a356fd5f0e955c5477e (diff) | |
download | libquotient-fd42d1dbd29800ef53ab9997c948f39a92aa8bff.tar.gz libquotient-fd42d1dbd29800ef53ab9997c948f39a92aa8bff.zip |
RoomEvent: drop timestamp()
Use originTimestamp(); the corresponding Q_PROPERTY was not renamed
(in error) so it is now.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/events/roomevent.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h index 3abd56c0..3174764f 100644 --- a/lib/events/roomevent.h +++ b/lib/events/roomevent.h @@ -14,7 +14,9 @@ class RedactionEvent; class RoomEvent : public Event { Q_GADGET Q_PROPERTY(QString id READ id) - Q_PROPERTY(QDateTime timestamp READ timestamp CONSTANT) + //! \deprecated Use originTimestamp instead + Q_PROPERTY(QDateTime timestamp READ originTimestamp CONSTANT) + Q_PROPERTY(QDateTime originTimestamp READ originTimestamp CONSTANT) Q_PROPERTY(QString roomId READ roomId CONSTANT) Q_PROPERTY(QString senderId READ senderId CONSTANT) Q_PROPERTY(QString redactionReason READ redactionReason) @@ -32,9 +34,6 @@ public: QString id() const; QDateTime originTimestamp() const; - [[deprecated("Use originTimestamp()")]] QDateTime timestamp() const { - return originTimestamp(); - } QString roomId() const; QString senderId() const; //! \brief Determine whether the event has been replaced |