Correctly locate files with relative paths
authorLars Knoll <lars.knoll@nokia.com>
Fri, 4 May 2012 09:21:49 +0000 (11:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 11:40:00 +0000 (13:40 +0200)
commit143daa6ac29940f0136034c99cddc932a4ec0a42
tree95bfa75091d49847ff83bbf0d86a96156b69cf41
parentfb631d10d0f102c63a574c48d28124d5afcf0343
Correctly locate files with relative paths

QUrl("relativefilename").toLocalFile() changed behavior
and now returns an empty string if the scheme is not set.
Setting the scheme to "file:" in setSource would however
break some other assumptions in the code about relative
url's.

Task-number: QTBUG-22416
Change-Id: I1b3fcbef81f6e356935ec426903989e783ce9a78
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/widgets/widgets/qtextbrowser.cpp
tests/auto/widgets/widgets/qtextbrowser/tst_qtextbrowser.cpp