diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-10-08 15:13:50 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-10-15 10:19:22 +0000 |
commit | 67fbdadb3ba1aa9f86ae2d6ca3bff69479fb12be (patch) | |
tree | 8f3e5e56f14350c64276cdda88b6a477806fe8f6 /tests/auto/qml/v4misc | |
parent | 50be4991d205bd392d6998b6fec88bb92a9e9e9a (diff) |
Fix translation contexts for paths with drive letters on Windows
Inside method_qtTr, the filename is assumed to be a (correct) URL. When
a (normalized) path with a windows drive letter is passed to
QJSEngine::evaluate, the URL will have a scheme that is the drive
letter. We cannot correct this in method_qtTr, because at that point we
might get in files that do not come from the file system, but through
actual URLs. The place where we know for sure that the filename is a
real file name and not a URL, is in QJSEngine::evaluate. So at that
point, make sure that the filename is a valid URL.
Task-number: QTBUG-70425
Change-Id: Ia41859c4024ac46e6f8c3d96057a5dffdecd8f56
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/v4misc')
0 files changed, 0 insertions, 0 deletions