QUrl::toDisplayString(PreferLocalFile)
Kevin Funk
kfunk at kde.org
Sun Dec 20 19:35:50 UTC 2015
On Sunday, December 20, 2015 07:19:50 PM Dominik Haumann wrote:
> Hi Kevin / all,
>
> KUrlRequester::setUrl(QUrl url) calls
> url.toDisplayString(Qt::PreferLocalFile). This leads to locations like
> "/C:/....", i.e. a leading '/' is prepended.
>
> This issue was once raised in
> http://lists.qt-project.org/pipermail/development/2014-August/018002.html
> but it seems that no action was taken, correct?
>
> Due to this issue, the find in files plugin typically uses a path that
> does not work,
> i.e. one always has to remove '/' manually before doing the search.
>
> Any Infos on this? Was a qt bug report ever filed?
Yes, there's a Qt bug:
https://bugreports.qt.io/browse/QTBUG-41729
I've planned to work on it, but until now had "better" things to do ;)
Feel free to pick it up, and fix it properly inside Qt. A patch is likely be
accepted, even if it changes the outcome of the toDisplayString method.
Cheers,
Kevin
--
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20151220/8304bb87/attachment.sig>
More information about the Kde-windows
mailing list