Add a function to add posts to pools (unsure if it'll be ever used...)
This commit is contained in:
parent
25fff7f879
commit
ed7b5b06d3
2 changed files with 5 additions and 3 deletions
|
@ -68,9 +68,9 @@ void DanbooruPool::addPosts(QList< int > posts)
|
||||||
m_posts.append(posts);
|
m_posts.append(posts);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DanbooruPool::addPosts(QStringList posts)
|
void DanbooruPool::addPosts(const QStringList& posts)
|
||||||
{
|
{
|
||||||
foreach (QString post, posts) {
|
foreach (const QString& post, posts) {
|
||||||
m_posts.append(post.toInt());
|
m_posts.append(post.toInt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
// Qt
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QVariant>
|
#include <QtCore/QVariant>
|
||||||
#include <QtCore/QList>
|
#include <QtCore/QList>
|
||||||
|
@ -98,7 +100,7 @@ namespace Danbooru {
|
||||||
|
|
||||||
void addPost(int post);
|
void addPost(int post);
|
||||||
void addPosts(QList<int> posts);
|
void addPosts(QList<int> posts);
|
||||||
void addPosts(QStringList posts);
|
void addPosts(const QStringList& posts);
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // namespace Danbooru
|
}; // namespace Danbooru
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue