Coding style
This commit is contained in:
		
					parent
					
						
							
								1de6786a9e
							
						
					
				
			
			
				commit
				
					
						bcecd30031
					
				
			
		
					 3 changed files with 548 additions and 548 deletions
				
			
		| 
						 | 
					@ -78,8 +78,6 @@ namespace Danbooru {
 | 
				
			||||||
    Q_PROPERTY(KUrl thumbnailUrl READ thumbnailUrl)
 | 
					    Q_PROPERTY(KUrl thumbnailUrl READ thumbnailUrl)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public:
 | 
					    public:
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @brief Ratings for a Danbooru item
 | 
					     * @brief Ratings for a Danbooru item
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
					@ -22,64 +22,65 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "danboorutag.h"
 | 
					#include "danboorutag.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Danbooru {
 | 
					namespace Danbooru
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DanbooruTag::DanbooruTag(const QVariantMap& postData, QObject* parent):
 | 
					DanbooruTag::DanbooruTag(const QVariantMap& postData, QObject* parent):
 | 
				
			||||||
                            QObject(parent)
 | 
					    QObject(parent)
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        m_id = postData.value("id").toInt();
 | 
					    m_id = postData.value("id").toInt();
 | 
				
			||||||
        m_name = postData.value("name").toString();
 | 
					    m_name = postData.value("name").toString();
 | 
				
			||||||
        m_count = postData.value("count").toInt();
 | 
					    m_count = postData.value("count").toInt();
 | 
				
			||||||
        m_ambiguous = postData.value("ambiguous").toBool();
 | 
					    m_ambiguous = postData.value("ambiguous").toBool();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        int type = postData.value("type").toInt();
 | 
					    int type = postData.value("type").toInt();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        switch (type) {
 | 
					    switch (type) {
 | 
				
			||||||
            case 0:
 | 
					    case 0:
 | 
				
			||||||
                m_tagType = General;
 | 
					        m_tagType = General;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
            case 1:
 | 
					    case 1:
 | 
				
			||||||
                m_tagType = Artist;
 | 
					        m_tagType = Artist;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
            case 2:
 | 
					    case 2:
 | 
				
			||||||
                m_tagType = Copyright;
 | 
					        m_tagType = Copyright;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
            case 3:
 | 
					    case 3:
 | 
				
			||||||
                m_tagType = Character;
 | 
					        m_tagType = Character;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
            case 4:
 | 
					    case 4:
 | 
				
			||||||
                m_tagType = Unknown;
 | 
					        m_tagType = Unknown;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
            default:
 | 
					    default:
 | 
				
			||||||
                m_tagType = Unknown;
 | 
					        m_tagType = Unknown;
 | 
				
			||||||
                break;
 | 
					        break;
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    int DanbooruTag::id() const
 | 
					int DanbooruTag::id() const
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        return m_id;
 | 
					    return m_id;
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    int DanbooruTag::count() const
 | 
					int DanbooruTag::count() const
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        return m_count;
 | 
					    return m_count;
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const QString DanbooruTag::name() const
 | 
					const QString DanbooruTag::name() const
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        return m_name;
 | 
					    return m_name;
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool DanbooruTag::ambiguous() const
 | 
					bool DanbooruTag::ambiguous() const
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        return m_ambiguous;
 | 
					    return m_ambiguous;
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    TagType DanbooruTag::type() const
 | 
					TagType DanbooruTag::type() const
 | 
				
			||||||
    {
 | 
					{
 | 
				
			||||||
        return m_tagType;
 | 
					    return m_tagType;
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}; // namespace Danbooru
 | 
					}; // namespace Danbooru
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue