qt5base-lts/tests/auto/gui/image
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
..
qicoimageformat Merge remote-tracking branch 'origin/5.7' into dev 2016-05-23 21:09:46 +02:00
qicon Merge remote-tracking branch 'origin/5.9' into dev 2017-06-19 16:12:34 +02:00
qiconhighdpi qt_findAtNxFile(): account for .9 (9-patch image) extensions 2017-06-24 21:24:53 +00:00
qimage tests/auto/gui: use new QTest::addRow() more 2017-04-24 19:22:53 +00:00
qimageiohandler Updated license headers 2016-01-21 18:55:18 +00:00
qimagereader Fix tst_QImageReader::imageFormatBeforeRead 2017-06-18 12:59:10 +00:00
qimagewriter QImageWriter: Detect failure due to trying to write a QImage() 2017-02-27 18:03:33 +00:00
qmovie Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
qpicture Updated license headers 2016-01-21 18:55:18 +00:00
qpixmap QRasterPlatformPixmap::createPixmapForImage(): preserve DPR 2017-02-06 16:57:41 +00:00
qpixmapcache Don't call releaseKey a second time if the insertion fails 2017-03-07 08:15:54 +00:00
image.pro Implement support for Scale directory key according to Icon Theme spec 2017-02-01 13:58:01 +00:00