Commit cd2f43e
committed
Fix QPaintDevice metrics warnings for DevicePixelRatio metrics
Handle PdmDevicePixelRatio and PdmDevicePixelRatioScaled metrics in
QwtNullPaintDevice.metric() to prevent 'Device has no metric information'
warnings when falling back to super().metric().
This fixes warnings introduced by commit b86f058 which changed the default
case from returning 0 to calling super().metric() for unhandled metrics.1 parent 64f35d9 commit cd2f43e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
275 | 279 | | |
276 | 280 | | |
277 | 281 | | |
| |||
0 commit comments