X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmessage.h;h=8c0db36604724e66b639530d5f4c3a5561f8a926;hb=9f5158eab420977b42d8fc6b98d2eb0de66cbaa4;hp=6254a2fe2faea5ca5c6c3e069717dd8ac6f6a301;hpb=13a1c223286e5cc174177810d30298cf843f0973;p=quassel.git diff --git a/src/common/message.h b/src/common/message.h index 6254a2fe..8c0db366 100644 --- a/src/common/message.h +++ b/src/common/message.h @@ -53,6 +53,7 @@ public: NetsplitQuit = 0x10000, Invite = 0x20000, }; + Q_DECLARE_FLAGS(Types, Type) // DO NOT CHANGE without knowing what you do, some of these flags are stored in the database enum Flag { @@ -112,6 +113,7 @@ QDataStream &operator>>(QDataStream &in, Message &msg); QDebug operator<<(QDebug dbg, const Message &msg); Q_DECLARE_METATYPE(Message) +Q_DECLARE_OPERATORS_FOR_FLAGS(Message::Types) Q_DECLARE_OPERATORS_FOR_FLAGS(Message::Flags) #endif