diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2020-02-07 17:29:33 +0300 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-27 13:56:45 +0100 |
commit | cb26a4da69db434d4227bc16e41187f3db93c984 (patch) | |
tree | 6f047493668c04ef721831b271e49a0e2802ab2c /examples/network/network-chat | |
parent | 469c3338407a5cf74c5e35c43ebb48c14e21ecac (diff) |
QAbstractSocket: deprecate 'error' signal, use 'errorOccurred' instead
[ChangeLog][Deprecation Notice] QAbstractSocket::error() (the signal) is deprecated; superseded by errorOccurred()
Change-Id: I11e9c774d7c6096d1e9b37c451cf0b99188b6aad
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/network/network-chat')
-rw-r--r-- | examples/network/network-chat/client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/network/network-chat/client.cpp b/examples/network/network-chat/client.cpp index d451181813..fe35d535f4 100644 --- a/examples/network/network-chat/client.cpp +++ b/examples/network/network-chat/client.cpp @@ -102,8 +102,7 @@ void Client::newConnection(Connection *connection) { connection->setGreetingMessage(peerManager->userName()); - connect(connection, QOverload<QAbstractSocket::SocketError>::of(&Connection::error), - this, &Client::connectionError); + connect(connection, &Connection::errorOccurred, this, &Client::connectionError); connect(connection, &Connection::disconnected, this, &Client::disconnected); connect(connection, &Connection::readyForUse, this, &Client::readyForUse); } |