diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2017-06-13 13:40:10 +0300 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2017-06-13 14:00:46 +0000 |
commit | 7c27955968bab135b0e0db3a5f707efa86e80464 (patch) | |
tree | ff5e50cc2dad5b2f7da3beb447877f8670b1b238 /tests/auto/qml/qml.pro | |
parent | 84275fda5eaf709043572d6bbd76d5714c517af7 (diff) |
Fix loading QML caches for qrc:/// urls
Running examples/quick/window/window produces debug messages:
"QML source file has moved to a different location."
This is because QQmlFile::urlToLocalFileOrQrc(const QString &) overload
is incompatible with QQmlFile::urlToLocalFileOrQrc(const QUrl &) when it
deals with qrc:/// urls. For example it returns ":///window/window.qml"
while the QUrl overload returns ":/window/window.qml". Thus the comparison
of source paths in CompilationUnit::loadFromDisk() fails.
Fix the incompatibility and add a test.
Change-Id: I20449b8cf13d715d88860f2cd413ab39c893f3ef
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qml.pro')
-rw-r--r-- | tests/auto/qml/qml.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qml.pro b/tests/auto/qml/qml.pro index 59566ad927..12a8bd3829 100644 --- a/tests/auto/qml/qml.pro +++ b/tests/auto/qml/qml.pro @@ -7,6 +7,7 @@ PUBLICTESTS += \ parserstress \ qjsvalueiterator \ qjsonbinding \ + qqmlfile \ !boot2qt { PUBLICTESTS += \ |