Fix for build on drone.io.
--HG-- branch : develop
This commit is contained in:
parent
c630b2e0fc
commit
4121dc7689
|
@ -136,8 +136,10 @@ int VDxfPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const
|
||||||
return engine->getResolution();
|
return engine->getResolution();
|
||||||
case QPaintDevice::PdmPhysicalDpiY:
|
case QPaintDevice::PdmPhysicalDpiY:
|
||||||
return engine->getResolution();
|
return engine->getResolution();
|
||||||
|
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 2)
|
||||||
case QPaintDevice::PdmDevicePixelRatio:
|
case QPaintDevice::PdmDevicePixelRatio:
|
||||||
return 1;
|
return 1;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
qWarning("VDxfPaintDevice::metric(), unhandled metric %d\n", metric);
|
qWarning("VDxfPaintDevice::metric(), unhandled metric %d\n", metric);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -156,8 +156,10 @@ int VObjPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const
|
||||||
return engine->getResolution();
|
return engine->getResolution();
|
||||||
case QPaintDevice::PdmPhysicalDpiY:
|
case QPaintDevice::PdmPhysicalDpiY:
|
||||||
return engine->getResolution();
|
return engine->getResolution();
|
||||||
|
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 2)
|
||||||
case QPaintDevice::PdmDevicePixelRatio:
|
case QPaintDevice::PdmDevicePixelRatio:
|
||||||
return 1;
|
return 1;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric);
|
qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user