34    case QPaintDevice::PdmWidth:
 
   36    case QPaintDevice::PdmHeight:
 
   37      return mSize.height();
 
   38    case QPaintDevice::PdmWidthMM:
 
   40    case QPaintDevice::PdmHeightMM:
 
   41      return mSize.height();
 
   42    case QPaintDevice::PdmNumColors:
 
   43      return std::numeric_limits<int>::max();
 
   44    case QPaintDevice::PdmDepth:
 
   46    case QPaintDevice::PdmDpiX:
 
   47    case QPaintDevice::PdmDpiY:
 
   48    case QPaintDevice::PdmPhysicalDpiX:
 
   49    case QPaintDevice::PdmPhysicalDpiY:
 
   51    case QPaintDevice::PdmDevicePixelRatio:
 
   53    case QPaintDevice::PdmDevicePixelRatioScaled:
 
   55#if (QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)) 
   56    case PdmDevicePixelRatioF_EncodedA:
 
   58    case PdmDevicePixelRatioF_EncodedB: