Commit 567d49f5 authored by David Redondo's avatar David Redondo 🏎
Browse files

Use QUrlQuery instead of QUrl::setQuery

parent 426149be
......@@ -103,7 +103,7 @@ QUrl CJobRunner::encode(const QString &family, quint32 style, bool system)
QUrl url(FC::encode(family, style));
url.addQueryItem("sys", system ? "true" : "false");
url.setQuery(QUrlQuery({{QStringLiteral("sys"), system ? QStringLiteral("true") : QStringLiteral("false")}}));
return url;
......@@ -49,13 +49,16 @@ namespace FC
QUrl encode(const QString &name, quint32 style, const QString &file, int index)
QUrl url(QUrl::fromLocalFile(name));
QUrlQuery query;
url.addQueryItem(FC_STYLE_QUERY, QString::number(style));
query.addQueryItem(FC_STYLE_QUERY, QString::number(style));
url.addQueryItem(FC_FILE_QUERY, file);
query.addQueryItem(FC_FILE_QUERY, file);
url.addQueryItem(FC_INDEX_QUERY, QString::number(index));
query.addQueryItem(FC_INDEX_QUERY, QString::number(index));
return url;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment