Annoying KURLRequester behavior

Goffioul Michael goffioul at imec.be
Tue Feb 24 13:38:42 GMT 2004


When using KURLRequester::setURL(QString) with a filename containing spaces,
those are shown in the edit field encoded as %20. This doesn't look nice for the user,
and leads to problems in the print dialog (bug #71259 and #69725).
 
For example:
 
KURLRequester *req = new KURLRequester();
/* the user entered "/home/foobar/my test.pdf" */
QString url = req->url(); /* url contains "/home/foobar/my test.pdf" */
req->setURL(url);
url = req->url(); /* url now contains "/home/foobar/my%20test.pdf" */
 
Is this consistent?
 
Thanks.
Michael.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040224/94f5b5d9/attachment.htm>


More information about the kde-core-devel mailing list