forked from qt-creator/qt-creator
Do not use deprecated Qt functionality.
Replace all* remaining deprecated Qt 4 functions with their Qt 5 counterparts. This means we no longer need to define the QT_DISABLE_DEPRECATED_BEFORE macro. This patch is relatively small because most source-compatible changes of this kind have been done before. * The one exception is the QmlDesigner, which uses QWeakPointer in a deprecated way all over the place. Change-Id: Id4b839c6685f3b5bdf2b89137f95231758ec53c7 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <QSettings>
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QUrlQuery>
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/networkaccessmanager.h>
|
||||
@@ -544,9 +545,11 @@ void Gitorious::updateProjectList(int hostIndex)
|
||||
void Gitorious::startProjectsRequest(int hostIndex, int page)
|
||||
{
|
||||
QUrl url = httpRequest(hostName(hostIndex), QLatin1String("projects"));
|
||||
url.addQueryItem(QLatin1String("format"), QLatin1String("xml"));
|
||||
QUrlQuery query;
|
||||
query.addQueryItem(QLatin1String("format"), QLatin1String("xml"));
|
||||
if (page >= 0)
|
||||
url.addQueryItem(QLatin1String("page"), QString::number(page));
|
||||
query.addQueryItem(QLatin1String("page"), QString::number(page));
|
||||
url.setQuery(query);
|
||||
createRequest(url, ListProjectsProtocol, hostIndex, page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user