summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/httpxmldownloader.cpp3
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 2 deletions
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 <QDebug>
+#include <QUrlQuery>
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 <QSettings>
#include <QTranslator>
#include <QtAlgorithms>
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include <QDesktopWidget>
#include <QLocale>
#include <QtDebug>