KURL::setProtocol making URL always valid
Kevin Krammer
kevin.krammer at gmx.at
Sun Oct 9 21:29:47 BST 2005
On Sunday 09 October 2005 22:13, David Faure wrote:
> 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 valid?
> >
> > I am asking because this transforms an invalid URL into a valid one:
> > KURL url;
> > url.setProtocol(url.protocol());
>
> Yes. This is how you construct a URL from its individual components
> (protocol and/or host and/or path etc.)
Ok, just wanted to make sure.
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051009/76c95b4f/attachment.sig>
More information about the kde-core-devel
mailing list