[libdanbooru] Fixup QFlags
This commit is contained in:
		
					parent
					
						
							
								d96b7bdaf2
							
						
					
				
			
			
				commit
				
					
						324bacda52
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue