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:
parent
555ed62e1c
commit
0200965e99
2 changed files with 27 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue