Make qtdeclarative compile with QT_NO_NETWORKPROXY

Change-Id: Ie7bf1e1d15da323f901f2c6b851a7b1e8ae0d832
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Tasuku Suzuki 2013-05-13 07:53:29 +09:00 committed by The Qt Project
parent 53bdf7daa1
commit 10a441e3b1
1 changed files with 2 additions and 0 deletions

View File

@ -308,7 +308,9 @@ void QQmlDebugConnection::flush()
void QQmlDebugConnection::connectToHost(const QString &hostName, quint16 port)
{
QTcpSocket *socket = new QTcpSocket(d);
#ifndef QT_NO_NETWORKPROXY
socket->setProxy(QNetworkProxy::NoProxy);
#endif
d->device = socket;
d->connectDeviceSignals();
d->gotHello = false;