Stop stuffing the URL "<Unknown File>" in QML errors
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 11 Apr 2012 18:57:06 +0000 (15:57 -0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Apr 2012 03:02:33 +0000 (05:02 +0200)
commit2d393ae042d5badf0862c0f95122f9662042f2a9
treed2317201139ec9c6410365e5f290e3d2501c5f17
parenta896d4b39ec3d45ba708d9b36ea9c864b1df2136
Stop stuffing the URL "<Unknown File>" in QML errors

QQmlError already knows how to deal with source scripts with no URL
and it will use "<Unknown File>" when converting to a string.

QUrl in Qt 5 leaves the "<" and ">" characters encoded, which means we
ended up getting warnings about "%3CUnknown File%3E", which isn't
nice.

Change-Id: I504604fa37bb734549048432aaf9db3b1fa568d2
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/qml/qml/qqmlbinding.cpp
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/v8/qv8bindings.cpp
tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
tests/auto/qml/qqmlengine/tst_qqmlengine.cpp