Tests: fix warnings from unhandled PaintDeviceMetric enum values

Amends a5953d20e27ab73774058dd06ac514f9310a41e8.

Change-Id: Ib186eb29b0c51333543cec42b0466b7ffdaef0dc
Reviewed-by: Pavel Dubsky <pavel.dubsky@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit b984a07da6bab511d695dd3082161645a70f9367)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Volker Hilsheimer 2024-07-10 12:43:28 +02:00 committed by Qt Cherry-pick Bot
parent 0f62cc21f5
commit f856d1e907
2 changed files with 4 additions and 0 deletions

View File

@ -1816,6 +1816,8 @@ void tst_QTextLayout::testTabDPIScale()
return 72;
case QPaintDevice::PdmDevicePixelRatio:
case QPaintDevice::PdmDevicePixelRatioScaled:
case QPaintDevice::PdmDevicePixelRatioF_EncodedA:
case QPaintDevice::PdmDevicePixelRatioF_EncodedB:
; // fall through
}
return 0;

View File

@ -2809,6 +2809,8 @@ namespace {
return 72;
case QPaintDevice::PdmDevicePixelRatio:
case QPaintDevice::PdmDevicePixelRatioScaled:
case QPaintDevice::PdmDevicePixelRatioF_EncodedA:
case QPaintDevice::PdmDevicePixelRatioF_EncodedB:
; // fall through
}
return 0;