summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qjsonparser.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2024-07-11 10:17:27 +0800
committerMitch Curtis <mitch.curtis@qt.io>2024-07-24 14:09:00 +0800
commitc70fd79a178a1e9a186cf8b2f78986e0a39845b4 (patch)
tree2bec0773821670b7777c1e2e55a95c844dff341d /src/corelib/serialization/qjsonparser.cpp
parentcd213bb750cb6619defeb700aea270f016c6cd19 (diff)
XCB: set devicePixelRatio on backing store QImages
The cocoa platform plugin, for example, already does this (via QCALayerBackingStore::GraphicsBuffer::asImage, which is called by QCALayerBackingStore::toImage). This also fixes reporting of image details when tests fail. For example, tst_QQuickShape::render before this patch: FAIL! : tst_QQuickShape::render() 'QQuickVisualTestUtils::compareImages(actualImg, refImg, &errorMessage)' returned FALSE. (Images are of different size: QSize(400, 300) QSize(200, 150) DPR: 1 1 ) and after: FAIL! : tst_QQuickShape::render() 'QQuickVisualTestUtils::compareImages(actualImg, refImg, &errorMessage)' returned FALSE. (Images are of different size: QSize(400, 300) QSize(200, 150) DPR: 2 1 ) [ChangeLog][Important Behavior Changes][XCB] The images grabbed from a window (via e.g. QQuickWindow::grabWindow) on XCB will now respect the window's devicePixelRatio. Change-Id: I72937d3284e7113efa7ab2f3b5b0fd13bc6dffca Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonparser.cpp')
0 files changed, 0 insertions, 0 deletions