diff --git a/gb.qt4/src/cpaint_impl.cpp b/gb.qt4/src/cpaint_impl.cpp index 71a419b34..c5e34eefe 100644 --- a/gb.qt4/src/cpaint_impl.cpp +++ b/gb.qt4/src/cpaint_impl.cpp @@ -1654,8 +1654,8 @@ int MyPaintDevice::metric(PaintDeviceMetric m) const case PdmDpiY: return d->logicalDpiY(); case PdmPhysicalDpiX: return d->physicalDpiX(); case PdmPhysicalDpiY: return d->physicalDpiY(); - case PdmDevicePixelRatio: return d->devicePixelRatio(); #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) + case PdmDevicePixelRatio: return d->devicePixelRatio(); case PdmDevicePixelRatioScaled: return d->devicePixelRatioFScale(); #endif default: return 0;