[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KURL::setProtocol making URL always valid
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2005-10-09 20:29:47
Message-ID: 200510092229.54962.kevin.krammer () gmx ! at
[Download RAW message or body]
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@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic