qt5base-lts/tests/auto/corelib/io/qurl
David Faure fd331a5b3a QUrl: fromLocalFile(QString()) should lead to an empty URL.
This is much more useful than the URL "file:", it allows to use
"empty path" and "empty URL" for the same meaning (e.g. not set).

QFileDialog actually uses "file:" though, as the URL for the
"My Computer" item in the sidebar. This patch preserves that.

[ChangeLog][QtCore][QUrl] QUrl::fromLocalFile now returns an empty URL
if the input string is empty.

Change-Id: Ib5ce1a3cdf5f229368e5bcd83c62c1d1ac9f8a17
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-07-26 09:49:33 +02:00
..
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
idna-test.c Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qurl.pro Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qurl_mac.mm Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qurl.cpp QUrl: fromLocalFile(QString()) should lead to an empty URL. 2014-07-26 09:49:33 +02:00