qt5base-lts/tests/auto/corelib/io/qurl
Kevin Funk 8dad3bf212 Fix toDisplayString(QUrl::PreferLocalFile) on Win
When using QUrl::PreferLocalFile we do want to strip the leading slash,
as toLocalFile() would do as well.

Behavior change by means of an example:
  QUrl url(QUrl::fromLocalFile("C:/file.txt")
  url.toLocalFile() --> "C:/file.txt"

Before:
  url.toDisplayString(QUrl::PreferLocalFile) --> "/C:/file.txt"

After:
  url.toDisplayString(QUrl::PreferLocalFile) --> "C:/file.txt"

Task-number: QTBUG-41729
Change-Id: I7d425541f6077ebcf3fcf46feeb7e0f03a0d7fe2
Reviewed-by: Dominik Haumann <dhaumann@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-01-20 13:24:53 +00:00
..
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
idna-test.c Update copyright headers 2015-02-11 06:49:51 +00:00
qurl.pro Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qurl_mac.mm Fixed license headers 2015-02-17 18:46:09 +00:00
tst_qurl.cpp Fix toDisplayString(QUrl::PreferLocalFile) on Win 2016-01-20 13:24:53 +00:00