Commit 648a6a38 authored by Mark Morschhäuser's avatar Mark Morschhäuser
Browse files

Qt5: QUrl addQueryItem moved to QUrlQuery

parent 032c41f3
......@@ -7,6 +7,10 @@
#include <QMessageBox>
#include <QDesktopServices>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#endif
DeckStatsInterface::DeckStatsInterface(QObject *parent)
: QObject(parent)
{
......@@ -42,7 +46,13 @@ void DeckStatsInterface::queryFinished(QNetworkReply *reply)
void DeckStatsInterface::analyzeDeck(DeckList *deck)
{
QUrl params;
#if QT_VERSION < 0x050000
params.addQueryItem("deck", deck->writeToString_Plain());
#else
QUrlQuery urlQuery;
urlQuery.addQueryItem("deck", deck->writeToString_Plain());
params.setUrlQuery(urlQuery);
#endif
QByteArray data;
data.append(params.encodedQuery());
......
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