Add the missing method setBlacklist(const QStringList&)

On top of that, make nextPostPage() Q_INVOKABLE so it can be used from
QML.
This commit is contained in:
Luca Beltrame 2015-02-13 07:46:57 +01:00
parent 555ed62e1c
commit 0200965e99
2 changed files with 27 additions and 9 deletions

View file

@ -523,6 +523,21 @@ void DanbooruService::setBlacklist(const QSet< QString > &blacklist)
}
void DanbooruService::setBlacklist(const QStringList &blacklist)
{
if (blacklist.isEmpty()) {
return;
}
m_blacklist.clear();
for (auto element : blacklist) {
m_blacklist.insert(element);
}
}
void DanbooruService::setBoardUrl(const QUrl& url)
{
m_url = url;