[libdanbooru] Fixup QFlags

This commit is contained in:
Luca Beltrame 2014-10-04 00:40:37 +02:00
parent d96b7bdaf2
commit 324bacda52

View file

@ -89,6 +89,7 @@ namespace Danbooru {
Questionable = 2, /**< Might contain hints of risqueness of violence **/ Questionable = 2, /**< Might contain hints of risqueness of violence **/
Explicit = 4 /**< Explicit material **/ Explicit = 4 /**< Explicit material **/
}; };
Q_DECLARE_FLAGS(Ratings, DanbooruPost::Rating)
private: private:
@ -211,10 +212,12 @@ namespace Danbooru {
* **/ * **/
const QString toString(); const QString toString();
}; };
Q_DECLARE_FLAGS(Ratings, DanbooruPost::Rating)
Q_DECLARE_OPERATORS_FOR_FLAGS(Ratings) Q_DECLARE_OPERATORS_FOR_FLAGS(DanbooruPost::Ratings)
}; // namespace Danbooru }; // namespace Danbooru