aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-07-20 16:54:00 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-23 09:52:06 +0000
commit78e7b9e695bd41f97cb5b4506f02bf6c956b611b (patch)
tree7eb3882543143dcf8bec7b71b655881e3d73270e /src/qml/Qt6QmlMacros.cmake
parentca7a91f9b6a1c7a44d9e91b081dc80d580e46538 (diff)
Update QQuickImage's DPR if re-loading the image didn't
An SVG doesn't have a DPR, but we need to reload and repaint it anyway when the DPR of the screen changes. So store the DPR of the item explicitly if reloading it didn't change the value (for instance, because sourceSize was not set). Otherwise, DPR changes are only handled when moving from a 1.0 (the default) DPR display to a different display, but not when moving back. Fixes: QTBUG-94622 Change-Id: I9f0a847699ab027ef876e341b8c6a954a6167ab3 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 08838f434b55024d9d5a9252fc2a3fb782b087da) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
0 files changed, 0 insertions, 0 deletions