summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-15 16:29:56 +0100
committerSimon Rettberg2017-11-15 16:29:56 +0100
commit2261e82dbc4716fc83314e9e247f0d1e76629700 (patch)
tree47228d4a03b2a8b773518981999a80ccf1ecd4cd /src
parentFix logic expression (diff)
downloadvmchooser2-2261e82dbc4716fc83314e9e247f0d1e76629700.tar.gz
vmchooser2-2261e82dbc4716fc83314e9e247f0d1e76629700.tar.xz
vmchooser2-2261e82dbc4716fc83314e9e247f0d1e76629700.zip
Use Qt 5
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>