Re: KUrl porting questions

2014-09-11 Thread Kai Uwe Broulik
Hi, > > Bonus question: During the port I see lots of old code which did something > > like KUrl(somePathOrUrlString).fileName() to get the basename of a path. > > Assuming we only have paths or urls without query parts or hash fragments, > > this should be as simple as getting the mid of the stri

Re: KUrl porting questions

2014-09-11 Thread David Faure
On Thursday 11 September 2014 11:51:07 Milian Wolff wrote: > Hey all, esp. David. > > I'm working on the KDevelop port away from KUrl and have some questions > which I could not answer myself with the existing porting notes and KUrl > documentation: > > a) What should one do with KUrl::AddTrailin

KUrl porting questions

2014-09-11 Thread Milian Wolff
Hey all, esp. David. I'm working on the KDevelop port away from KUrl and have some questions which I could not answer myself with the existing porting notes and KUrl documentation: a) What should one do with KUrl::AddTrailingSlash? QUrl::setPath(QUrl::path() + '/'))? b) What about KUrl::relati