qt5base-lts/tests/auto/gui
Volker Hilsheimer 2d87c4d881 QTextImageHandler: Resolve Nx images correctly for file or qrc URLs
The qt_findAtNxFile helper in qicon.cpp expects a local file name that
can be probed with QFile::exists. If the src attribute of an <img>
element specifies the location of the image as a file:/ or qrc:/ url
rather than as a local file name, then we need to strip the scheme
off the file path, and in the case of a qrc URL leave the :/ prefix
before calling the qt_findAtNxFile helper.

Amends, and partially reverts, 760df72565.
We can't avoid testing whether the source in the HTML is provided as a
URL before interpreting it as a file name.

Pick-to: 6.5 6.4 6.2
Fixes: QTBUG-109212
Change-Id: I7ea7a5bfde79bab90a8025c42e754129813dd0fc
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-12-22 19:19:33 +01:00
..
image Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel Detach event points when cloning pointer events 2022-12-10 06:38:58 +01:00
math3d Fix tst_QQuaternion's duplicate test tags 2022-10-11 11:20:58 +02:00
painting Use SPDX license identifiers 2022-11-15 07:50:17 +00:00
platform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qopengl Revert "tests: XFAIL tst_QOpenGL::bufferMapRange() on Wayland" 2022-10-07 13:20:12 +02:00
qopenglconfig Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qvulkan Android: Skip/blacklist remaining tests for emulator bump to API 24 2022-11-15 01:01:54 +00:00
rhi rhi: vk: Fix up some legacy queue (family) index inconsistencies 2022-12-16 17:49:28 +00:00
text QTextImageHandler: Resolve Nx images correctly for file or qrc URLs 2022-12-22 19:19:33 +01:00
util Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00