summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-10-21 12:58:59 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-10-21 11:33:37 +0000
commit8a2225e674aa5777f7fc119ca84e790904c4b71d (patch)
treef8155a02bff86426bb6c46ab5f2cef6b8b461132 /tests/auto
parentc2201fad153a64f1c6da84390de4316aedf3a2cd (diff)
downloadqtwebsockets-8a2225e674aa5777f7fc119ca84e790904c4b71d.tar.gz
Test: replace obsolete QUrl::addQueryItem()
Change-Id: I266b98d309a8912efb988a4c7a006d6fefb48531 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
index d0f22af..b4ffbd5 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -675,7 +675,9 @@ void tst_QWebSocket::tst_moveToThread()
QUrl url = QUrl(QStringLiteral("ws://") + echoServer.hostAddress().toString() +
QStringLiteral(":") + QString::number(echoServer.port()));
url.setPath("/segment/with spaces");
- url.addQueryItem("queryitem", "with encoded characters");
+ QUrlQuery query;
+ query.addQueryItem("queryitem", "with encoded characters");
+ url.setQuery(query);
socket->asyncOpen(url);
if (socketConnectedSpy.count() == 0)