[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Request to change signature of a KUrl method
From: Aurélien Gâteau <aurelien.gateau () canonical ! com>
Date: 2009-09-16 13:21:05
Message-ID: 4AB0E641.7060102 () canonical ! com
[Download RAW message or body]
Ramon Zarazua wrote:
> Hello.
>
> I have been working with KUrls frequently, and often I Need to clean the path
> of a URL before passing it in as an argument into a function. I am just
> suggesting having cleanPath return a reference to itself, to allow chaining,
> and avoid having to create temporaries to call the function.
I suggest introducing a "KUrl::cleanedPath(const CleanPathOption&
options) const" method which would not alter the current url and return
a cleaned version. This is BC and quite consistent with other Qt API
(example, QRect::adjust() and QRect::adjusted())
Aurelien
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic