summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorØystein Heskestad <oystein.heskestad@qt.io>2022-07-19 10:29:48 +0200
committerØystein Heskestad <oystein.heskestad@qt.io>2022-08-03 15:52:27 +0200
commit55cef3a13c8377c55b2fe050751c8a05eb7f9fce (patch)
tree6c7e07633931d9fc0179dcfc9fb8cf7afebfbdc9 /tests
parent398bdb6a318270c9614a56433c273fe62a2bf908 (diff)
downloadqtwebsockets-55cef3a13c8377c55b2fe050751c8a05eb7f9fce.tar.gz
Replace QWebSocket::error signal with QWebSocket::errorOccurred
The signal error(QAbstractSocket::SocketError) is deprecated because it overloads the function error() and the naming does not match other similar signals. Fixes: QTBUG-101756 Change-Id: Ifbddef73ea39b03a6c72b0e09caa2031135d7687 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp b/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp
index b627fe3..7decdb5 100644
--- a/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp
+++ b/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp
@@ -797,7 +797,7 @@ void tst_QWebSocketServer::tst_handshakeTimeout()
QCOMPARE(secureServerConnectionSpy.count(), 0);
QWebSocket secureSocket;
- connect(&secureSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error),
+ connect(&secureSocket, &QWebSocket::errorOccurred,
[](QAbstractSocket::SocketError error) {
// This shouldn't print but it's useful for debugging when/if it does.
qDebug() << "Error occurred in the client:" << error;