Pool updates

This commit is contained in:
Luca Beltrame 2018-08-22 21:44:08 +02:00
parent 1e987cf453
commit 66a1403628
Signed by: einar
GPG key ID: 8DF631FD021DB0C5
2 changed files with 3 additions and 10 deletions

View file

@ -18,6 +18,7 @@
*/
#include "danboorupool.h"
#include "danboorupost.h"
namespace Danbooru
{
@ -61,17 +62,10 @@ void DanbooruPool::addPost(int post)
m_posts.append(post);
}
void DanbooruPool::addPosts(QList< int > posts)
void DanbooruPool::addPosts(QList<int> posts)
{
m_posts.append(posts);
}
void DanbooruPool::addPosts(const QStringList &posts)
{
for (auto post : posts) {
m_posts.append(post.toInt());
}
}
} // namespace Danbooru

View file

@ -59,7 +59,6 @@ private:
QString m_name;
QString m_description;
QList<int> m_posts;
public:
/**
@ -95,10 +94,10 @@ public:
QString name() const;
QString description() const;
QList<int> posts() const;
const QVariantList postData() const;
void addPost(int post);
void addPosts(QList<int> posts);
void addPosts(const QStringList &posts);
};
} // namespace Danbooru