Pool updates
This commit is contained in:
parent
1e987cf453
commit
66a1403628
2 changed files with 3 additions and 10 deletions
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "danboorupool.h"
|
#include "danboorupool.h"
|
||||||
|
#include "danboorupost.h"
|
||||||
|
|
||||||
namespace Danbooru
|
namespace Danbooru
|
||||||
{
|
{
|
||||||
|
@ -61,17 +62,10 @@ void DanbooruPool::addPost(int post)
|
||||||
m_posts.append(post);
|
m_posts.append(post);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DanbooruPool::addPosts(QList< int > posts)
|
void DanbooruPool::addPosts(QList<int> posts)
|
||||||
{
|
{
|
||||||
m_posts.append(posts);
|
m_posts.append(posts);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DanbooruPool::addPosts(const QStringList &posts)
|
|
||||||
{
|
|
||||||
|
|
||||||
for (auto post : posts) {
|
|
||||||
m_posts.append(post.toInt());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Danbooru
|
} // namespace Danbooru
|
||||||
|
|
|
@ -59,7 +59,6 @@ private:
|
||||||
QString m_name;
|
QString m_name;
|
||||||
QString m_description;
|
QString m_description;
|
||||||
QList<int> m_posts;
|
QList<int> m_posts;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,10 +94,10 @@ public:
|
||||||
QString name() const;
|
QString name() const;
|
||||||
QString description() const;
|
QString description() const;
|
||||||
QList<int> posts() const;
|
QList<int> posts() const;
|
||||||
|
const QVariantList postData() const;
|
||||||
|
|
||||||
void addPost(int post);
|
void addPost(int post);
|
||||||
void addPosts(QList<int> posts);
|
void addPosts(QList<int> posts);
|
||||||
void addPosts(const QStringList &posts);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Danbooru
|
} // namespace Danbooru
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue