qt5base-lts/tests/auto/gui
Mitch Curtis 8dd8acf8bb qt_findAtNxFile(): account for .9 (9-patch image) extensions
Currently a file with a .9.png extension will only have its @2x variant
found if it follows this format:

foo.9@2x.png

Since ".9" should be considered part of the file suffix, it should
ideally be able to look like this and still be picked up:

foo@2x.9.png

This patch makes qt_findAtNxFile() account for .9.* extensions.

This is needed for the image-based style support in Qt Quick Controls
2, which uses 9-patch images.

qmlbench benchmark results using
benchmarks\auto\creation\quick.image\delegates_image.qml with
QT_SCALE_FACTOR=2 show no difference in performance after this patch
is applied.

[ChangeLog][QtGui] High DPI variants of 9-patch images can now be
loaded using the following syntax: "foo@2x.9.png"

Change-Id: I6d1384113bef21b4fe85a104ee6b16869c93b077
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2017-06-24 21:24:53 +00:00
..
image qt_findAtNxFile(): account for .9 (9-patch image) extensions 2017-06-24 21:24:53 +00:00
itemmodels QAbstractItemModel::supportedDragActions: fix regression 2017-05-31 18:54:00 +00:00
kernel Merge remote-tracking branch 'origin/5.9' into dev 2017-06-19 16:12:34 +02:00
math3d QMatrix4x4: fix aliasing problem in operator*= 2017-04-14 12:29:35 +00:00
painting Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qopengl Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-12 20:08:56 +02:00
qopenglconfig Skip testing of QOpenGlConfig on platforms that don't support it 2017-04-12 08:36:39 +00:00
qvulkan Introduce QVulkanWindow 2017-03-22 15:40:57 +00:00
text Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
util Sort the keys before comparing them in the test 2017-06-22 11:57:33 +00:00
gui.pro Basic Vulkan enablers 2017-03-17 16:12:03 +00:00