From 8a2225e674aa5777f7fc119ca84e790904c4b71d Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 21 Oct 2015 12:58:59 +0200 Subject: Test: replace obsolete QUrl::addQueryItem() Change-Id: I266b98d309a8912efb988a4c7a006d6fefb48531 Reviewed-by: Alex Blasche --- tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/auto') 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) -- cgit v1.2.1