summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-08-19 16:42:58 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-08-24 17:43:56 +0200
commit0011a4510265a13b16f04bce8f16cc9381c22e88 (patch)
treed4e2944c7dc84d2e427d12c56657961df6eb5475 /examples
parent081207dc377962537ca7e8fc90a20197f05c30c8 (diff)
QAbstractSocket: Resolve remaining Qt6 TODOs
Change-Id: Id257f0721c1cd5fcbafa9297bae0251a2d68e366 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/network/torrent/peerwireclient.cpp7
-rw-r--r--examples/network/torrent/peerwireclient.h5
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/network/torrent/peerwireclient.cpp b/examples/network/torrent/peerwireclient.cpp
index c30abd0e13..177568d402 100644
--- a/examples/network/torrent/peerwireclient.cpp
+++ b/examples/network/torrent/peerwireclient.cpp
@@ -397,12 +397,11 @@ bool PeerWireClient::canTransferMore() const
|| !outgoingBuffer.isEmpty() || !pendingBlocks.isEmpty();
}
-void PeerWireClient::connectToHost(const QHostAddress &address,
- quint16 port, OpenMode openMode)
-
+void PeerWireClient::connectToHost(const QString &address, quint16 port, OpenMode openMode,
+ NetworkLayerProtocol protocol)
{
setOpenMode(openMode);
- socket.connectToHost(address, port, openMode);
+ socket.connectToHost(address, port, openMode, protocol);
}
void PeerWireClient::diconnectFromHost()
diff --git a/examples/network/torrent/peerwireclient.h b/examples/network/torrent/peerwireclient.h
index 75edf8ee77..2d64329854 100644
--- a/examples/network/torrent/peerwireclient.h
+++ b/examples/network/torrent/peerwireclient.h
@@ -128,8 +128,9 @@ public:
void setReadBufferSize(qint64 size) override;
- void connectToHost(const QHostAddress &address,
- quint16 port, OpenMode openMode = ReadWrite) override;
+ using QTcpSocket::connectToHost;
+ void connectToHost(const QString &address, quint16 port, OpenMode openMode = ReadWrite,
+ NetworkLayerProtocol protocol = AnyIPProtocol) override;
void diconnectFromHost();
signals: