diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-10 15:23:08 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-10 15:23:08 +0200 |
commit | f46e19924a1c0a5ac3f1d2a489f8017a5e143fda (patch) | |
tree | b6800d524489f40fc1713604e458f56b3bc12cf4 /lib | |
parent | 5276e4321c6b3348fc5b1d3d16f93131d9676e76 (diff) | |
download | libquotient-f46e19924a1c0a5ac3f1d2a489f8017a5e143fda.tar.gz libquotient-f46e19924a1c0a5ac3f1d2a489f8017a5e143fda.zip |
Turn EventStatus from a class to a namespace
This wrapper only exists for an enum inside of it and dates back to
times when Qt meta-object system did not support free-standing enums.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eventitem.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h index 1986ba77..a5f381f0 100644 --- a/lib/eventitem.h +++ b/lib/eventitem.h @@ -11,9 +11,9 @@ namespace Quotient { class StateEventBase; -class EventStatus { - Q_GADGET -public: +namespace EventStatus { + Q_NAMESPACE + /** Special marks an event can assume * * This is used to hint at a special status of some events in UI. @@ -32,8 +32,8 @@ public: Hidden = 0x100, //< The event should not be shown in the timeline }; Q_DECLARE_FLAGS(Status, Code) - Q_FLAG(Status) -}; + Q_FLAG_NS(Status) +} // namespace EventStatus class EventItemBase { public: @@ -148,4 +148,4 @@ inline QDebug& operator<<(QDebug& d, const TimelineItem& ti) return d; } } // namespace Quotient -Q_DECLARE_METATYPE(Quotient::EventStatus) +//Q_DECLARE_METATYPE(Quotient::EventStatus) |