Tests: fix warnings from unhandled PaintDeviceMetric enum values
Amends a5953d20e2.
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>
bb10
parent
0f62cc21f5
commit
f856d1e907
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue