Fix QUrl documentation: FullyDecoded and DecodedMode are a pair

DecodedMode with FullyEncoded makes no sense whatsoever.

Change-Id: I182db7aceb38e4e9398138066022912adec9c413
Reviewed-by: David Faure <faure@kde.org>
This commit is contained in:
Thiago Macieira 2012-05-22 15:15:24 +02:00 committed by Qt by Nokia
parent 23347033ea
commit 4618bc3ea0

View File

@ -1771,7 +1771,7 @@ QString QUrl::userInfo(ComponentFormattingOptions options) const
QUrl::DecodedMode should be used when setting the user name from a data QUrl::DecodedMode should be used when setting the user name from a data
source which is not a URL, such as a password dialog shown to the user or source which is not a URL, such as a password dialog shown to the user or
with a user name obtained by calling userName() with the QUrl::FullyEncoded with a user name obtained by calling userName() with the QUrl::FullyDecoded
formatting option. formatting option.
\sa userName(), setUserInfo() \sa userName(), setUserInfo()
@ -1833,7 +1833,7 @@ QString QUrl::userName(ComponentFormattingOptions options) const
QUrl::DecodedMode should be used when setting the password from a data QUrl::DecodedMode should be used when setting the password from a data
source which is not a URL, such as a password dialog shown to the user or source which is not a URL, such as a password dialog shown to the user or
with a password obtained by calling password() with the QUrl::FullyEncoded with a password obtained by calling password() with the QUrl::FullyDecoded
formatting option. formatting option.
\sa password(), setUserInfo() \sa password(), setUserInfo()
@ -2016,7 +2016,7 @@ int QUrl::port(int defaultPort) const
QUrl::DecodedMode should be used when setting the path from a data source QUrl::DecodedMode should be used when setting the path from a data source
which is not a URL, such as a dialog shown to the user or with a path which is not a URL, such as a dialog shown to the user or with a path
obtained by calling path() with the QUrl::FullyEncoded formatting option. obtained by calling path() with the QUrl::FullyDecoded formatting option.
\sa path() \sa path()
*/ */
@ -2196,7 +2196,7 @@ QString QUrl::query(ComponentFormattingOptions options) const
QUrl::DecodedMode should be used when setting the fragment from a data QUrl::DecodedMode should be used when setting the fragment from a data
source which is not a URL or with a fragment obtained by calling source which is not a URL or with a fragment obtained by calling
fragment() with the QUrl::FullyEncoded formatting option. fragment() with the QUrl::FullyDecoded formatting option.
\sa fragment(), hasFragment() \sa fragment(), hasFragment()
*/ */