From 2261e82dbc4716fc83314e9e247f0d1e76629700 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 15 Nov 2017 16:29:56 +0100 Subject: Use Qt 5 --- src/httpxmldownloader.cpp | 3 ++- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/httpxmldownloader.cpp b/src/httpxmldownloader.cpp index bebcfd0..45d1e79 100644 --- a/src/httpxmldownloader.cpp +++ b/src/httpxmldownloader.cpp @@ -1,6 +1,7 @@ #include "httpxmldownloader.h" #include +#include HttpXmlDownloader::HttpXmlDownloader() { nam = new QNetworkAccessManager(this); @@ -9,7 +10,7 @@ HttpXmlDownloader::HttpXmlDownloader() { QNetworkReply* HttpXmlDownloader::makeRequest(const QString& xmlurl, const QString& locationIds) { QUrl url(xmlurl); if (!locationIds.isEmpty()) { - url.addQueryItem("locations", locationIds); + QUrlQuery(url).addQueryItem("locations", locationIds); } return nam->get(QNetworkRequest(url)); } diff --git a/src/main.cpp b/src/main.cpp index 31bd20e..d24b253 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include -- cgit v1.2.3-55-g7522