KURL::setProtocol making URL always valid
faure at kde.org
Sun Oct 9 21:13:05 BST 2005
On Sunday 09 October 2005 00:34, Kevin Krammer wrote:
> While working on the apidox of KURL I had a look at the setProtocol method.
> Is it intentional that setting any string, even QString::null makes the KURL
> I am asking because this transforms an invalid URL into a valid one:
> KURL url;
Yes. This is how you construct a URL from its individual components
(protocol and/or host and/or path etc.)
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel