BorderImage support for @2x assets
authorAndy Nichols <andy.nichols@digia.com>
Thu, 6 Nov 2014 19:30:45 +0000 (11:30 -0800)
committerGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Wed, 6 May 2015 14:25:38 +0000 (14:25 +0000)
commitd0dc7cec78e182f04726c5a2adade80dc2983bcf
tree577e146a61c90cf68c7fe947efafdf791f43546b
parent45212181e0510eb94f67329731fd6574a6abe3f5
BorderImage support for @2x assets

Despite being a subclass of QQuickImageBase, BorderImage components did
not support using @2x assets like Image components.  The 9 patch image
logic now accounts for device pixel ratio when needed.

Manual tests added for stretch, repeat and round tiling modes.

[ChangeLog][BorderImage] Add support for @2x HiDPI border images.
This means, no more need to multiply the border sizes by the device
pixel ratio.

Change-Id: I79958739929964c816ba5dacedd9eaf93a60a183
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
src/quick/items/qquickborderimage.cpp
tests/manual/highdpi/BorderImage.png [new file with mode: 0644]
tests/manual/highdpi/BorderImage@2x.png [new file with mode: 0644]
tests/manual/highdpi/TiledBorderImage.png [new file with mode: 0644]
tests/manual/highdpi/TiledBorderImage@2x.png [new file with mode: 0644]
tests/manual/highdpi/borderimage.qml [new file with mode: 0644]