KUrl(QString) fix

Ralf Habacker ralf.habacker at freenet.de
Sat Dec 23 10:09:34 GMT 2006


David Faure schrieb:
>
> So? We haven't released kde-4.0 yet, it can be made non-inline any Monday.
> It is inline right now only because of the overload that takes an argument, but the intent
> wasn't that KUrl::path would work any differently from QUrl::path. But since we already
> disagree with QUrl about a few things (like the use of toString), I'm not actually 
> opposed to a solution where path() would work differently.
>   
With the increased knowledge of this stuff I think that there is no 
reason to change path() behavior because we can use toLocalFile().
More important would be to have a toLocalFile() method with the 
'AdjustPathOption trailing' parameter as path() have

  QString path( ) const;
  QString path( AdjustPathOption trailing ) const;

->

  QString toLocalFile() const;
  QString toLocalFile(AdjustPathOption trailing ) const;


Ralf






More information about the kde-core-devel mailing list