[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Qt 4.8 QUrl.toLocalFile behavior change,
From:       Kevin Kofler <kevin.kofler () chello ! at>
Date:       2011-10-30 21:34:48
Message-ID: j8kftp$g9q$1 () dough ! gmane ! org
[Download RAW message or body]

Thiago Macieira wrote:
>> 2. heuristically (replacing the current KUrl::KUrl and
>> KUrl::fromPathToUrl): * absolute paths should be file paths
>>* relative paths should be file paths (!) (currently, they're URLs)
>>* everything with a URL scheme (protocol) should be a URL
> 
> I disagree and will not implement this in QUrl.

You keep claiming this is not needed or useful, but how else would you 
suggest handling the use case of a network-transparent file dialog (or file 
requester, i.e. a line edit + an "open" button which brings up a file 
dialog, to be used in dialogs, see KUrlRequester) where the USER expects to 
be able to type in any of:
* an absolute path,
* a path relative to some local current directory or
* a URL, which will always be absolute?
Should all the code needing to handle something like this come with their 
own heuristics to handle this same user input?

Anyway, it can be implemented in KUrl (replacing or adding to the current 
heuristics, which are also not in QUrl).

        Kevin Kofler

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic