Add QUrl::ParsingMode to the component setters in QUrl
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 21 May 2012 15:02:27 +0000 (17:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 22 May 2012 18:56:38 +0000 (20:56 +0200)
commit53d0624403f7f2ac8fe8364a7c5cd136717d40ed
tree77318f767dc72709ad74a5c6e9c1a87a5c5aeeb2
parent239dd9fef153286832c853eefb9fc075a1eafbe3
Add QUrl::ParsingMode to the component setters in QUrl

This allows one to instruct QUrl to ignore the percent-encodings and
interpret the data exactly as provided. This is useful in certain
use-cases where the data comes from a non-URL context.

The strict-mode checking of the components is not implemented
yet. Currently, the behaviour is equal to that of TolerantMode.

Discussed-on: http://lists.qt-project.org/pipermail/development/2012-May/003811.html
Change-Id: Ia5abe045a8ce7f9b50cbce3b5a7e3735e068d03a
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/corelib/io/qurl.cpp
src/corelib/io/qurl.h
tests/auto/corelib/io/qurl/tst_qurl.cpp