Add a default constructor for DanbooruPost
This commit is contained in:
parent
1adeaa4063
commit
4fbfdf753e
2 changed files with 21 additions and 1 deletions
|
@ -38,6 +38,19 @@ namespace Danbooru
|
|||
|
||||
const QMap<QString, DanbooruPost::Rating> DanbooruPost::RATING_MAP = initRatingMap();
|
||||
|
||||
DanbooruPost::DanbooruPost(QObject* parent): QObject(parent)
|
||||
{
|
||||
m_pixmap = QPixmap();
|
||||
m_tags = QSet<QString>();
|
||||
m_height = 0;
|
||||
m_width = 0;
|
||||
m_url = QUrl();
|
||||
m_thumbnailUrl = QUrl();
|
||||
m_size = 0;
|
||||
m_rating = Questionable;
|
||||
}
|
||||
|
||||
|
||||
DanbooruPost::DanbooruPost(QVariantMap postData, QPixmap pixmap,
|
||||
QObject *parent):
|
||||
QObject(parent),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue