forked from qt-creator/qt-creator
Introduce QML-based welcome screen using desktop components
Implements new XML-based format for examples, demos & tutorials Done-with: Primrose Mbanefo <ext-primrose.mbanefo@nokia.com> Change-Id: I42c0afdb419cffe5637cd4f298e828d09e0fb15a Reviewed-on: http://codereview.qt.nokia.com/840 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
b23aa10890
commit
497dd323ea
@@ -37,9 +37,10 @@
|
||||
#include <QtCore/QXmlStreamReader>
|
||||
#include <QtCore/QSettings>
|
||||
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
|
||||
#include <coreplugin/networkaccessmanager.h>
|
||||
|
||||
enum { debug = 0 };
|
||||
|
||||
enum Protocol { ListCategoriesProtocol, ListProjectsProtocol };
|
||||
@@ -528,7 +529,7 @@ void Gitorious::slotReplyFinished()
|
||||
QNetworkReply *Gitorious::createRequest(const QUrl &url, int protocol, int hostIndex, int page)
|
||||
{
|
||||
if (!m_networkManager)
|
||||
m_networkManager = new QNetworkAccessManager(this);
|
||||
m_networkManager = new Core::NetworkAccessManager(this);
|
||||
QNetworkReply *reply = m_networkManager->get(QNetworkRequest(url));
|
||||
connect(reply, SIGNAL(finished()), this, SLOT(slotReplyFinished()));
|
||||
reply->setProperty(protocolPropertyC, QVariant(protocol));
|
||||
|
||||
Reference in New Issue
Block a user