KUrl -> QUrl
This commit is contained in:
parent
0eb716bda0
commit
d7fec181e2
11 changed files with 66 additions and 63 deletions
|
@ -53,7 +53,7 @@ const QString DanbooruService::ARTIST_URL = "artist/index.json";
|
|||
const QString DanbooruService::POOL_DATA_URL = "pool/show.xml";
|
||||
const QString DanbooruService::RELATED_TAG_URL = "tag/related.json";
|
||||
|
||||
DanbooruService::DanbooruService(KUrl& boardUrl, QString username,
|
||||
DanbooruService::DanbooruService(QUrl& boardUrl, QString username,
|
||||
QString password, KImageCache* cache,
|
||||
QObject* parent):
|
||||
QObject(parent),
|
||||
|
@ -84,7 +84,7 @@ void DanbooruService::getPostList(int page, QStringList tags, int limit)
|
|||
parameters.insert("limit", QString::number(limit));
|
||||
parameters.insert("page", QString::number(page));
|
||||
|
||||
KUrl danbooruUrl = requestUrl(m_url, POST_URL, m_username,
|
||||
QUrl danbooruUrl = requestUrl(m_url, POST_URL, m_username,
|
||||
m_password, parameters, tags);
|
||||
|
||||
//qDebug() << "Final constructed post URL" << danbooruUrl.url();
|
||||
|
@ -110,7 +110,7 @@ void DanbooruService::getTagList(int limit, QString name)
|
|||
}
|
||||
parameters.insert("order", "date");
|
||||
|
||||
KUrl danbooruUrl = requestUrl(m_url, TAG_URL, m_username, m_password,
|
||||
QUrl danbooruUrl = requestUrl(m_url, TAG_URL, m_username, m_password,
|
||||
parameters);
|
||||
//qDebug() << "Final constructed tag URL" << danbooruUrl.url();
|
||||
|
||||
|
@ -131,7 +131,7 @@ void DanbooruService::getPool(int poolId, int page)
|
|||
parameters.insert("page", QString::number(page));
|
||||
}
|
||||
|
||||
KUrl danbooruUrl = requestUrl(m_url, POOL_DATA_URL, m_username,
|
||||
QUrl danbooruUrl = requestUrl(m_url, POOL_DATA_URL, m_username,
|
||||
m_password, parameters);
|
||||
|
||||
//qDebug() << "Final constructed pool URL" << danbooruUrl.url();
|
||||
|
@ -153,7 +153,7 @@ void DanbooruService::getPool(int poolId, int page)
|
|||
void DanbooruService::getPoolList(int page)
|
||||
{
|
||||
|
||||
KUrl danbooruUrl;
|
||||
QUrl danbooruUrl;
|
||||
|
||||
if (page == 0) {
|
||||
danbooruUrl = requestUrl(m_url, POOL_URL, m_username, m_password);
|
||||
|
@ -203,7 +203,7 @@ void DanbooruService::getRelatedTags(const QStringList& tags,
|
|||
QMap<QString, QString> parameters;
|
||||
parameters.insert("type", type);
|
||||
|
||||
KUrl danbooruUrl = requestUrl(m_url, RELATED_TAG_URL, m_username,
|
||||
QUrl danbooruUrl = requestUrl(m_url, RELATED_TAG_URL, m_username,
|
||||
m_password, parameters, tags);
|
||||
|
||||
//qDebug() << "Final constructed related tag URL" << danbooruUrl.url();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue