path: root/doc/src
diff options
authorThiago Macieira <>2011-09-03 15:05:56 +0200
committerQt by Nokia <>2012-03-30 01:19:59 +0200
commit1aeb18038661d8da6d37fa278e37e315e35c5c42 (patch)
treea0d84714d56e45c42e6cdd0fde686ba18e91de4a /doc/src
parentb75aa795feb476111a0706c52a8ebea8dff7640d (diff)
Long live QUrlQuery
This class is meant to replace the QUrl functionality that handled key-value pairs in the query part of an URL. We therefore split the URL parsing code from the code dealing with the pairs: QUrl now only needs to deal with one encoded string, without knowing what it is. Since it doesn't know how to decode the query, QUrl also becomes limited in what it can decode. Following the letter of the RFC, queries will not encode "gen-delims" nor "sub-delims" nor the plus sign (+), thus allowing the most common delimiters options to remain unchanged. QUrlQuery has some undefined behaviour when it comes to empty query keys. It may drop them or keep them; it may merge them, etc. Change-Id: Ia61096fe5060b486196ffb8532e7494eff58fec1 Reviewed-by: Lars Knoll <>
Diffstat (limited to 'doc/src')
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_io_qurl.cpp b/doc/src/snippets/code/src_corelib_io_qurl.cpp
index ba17c02fb3..8fd4b8ee9f 100644
--- a/doc/src/snippets/code/src_corelib_io_qurl.cpp
+++ b/doc/src/snippets/code/src_corelib_io_qurl.cpp
@@ -68,7 +68,7 @@ sock.connectToHost(, url.port(80));
//! [4]
//! [4]