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();
|
||||
case QPaintDevice::PdmPhysicalDpiY:
|
||||
return engine->getResolution();
|
||||
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 2)
|
||||
case QPaintDevice::PdmDevicePixelRatio:
|
||||
return 1;
|
||||
#endif
|
||||
default:
|
||||
qWarning("VDxfPaintDevice::metric(), unhandled metric %d\n", metric);
|
||||
break;
|
||||
|
|
|
@ -156,8 +156,10 @@ int VObjPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const
|
|||
return engine->getResolution();
|
||||
case QPaintDevice::PdmPhysicalDpiY:
|
||||
return engine->getResolution();
|
||||
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 2)
|
||||
case QPaintDevice::PdmDevicePixelRatio:
|
||||
return 1;
|
||||
#endif
|
||||
default:
|
||||
qWarning("VObjPaintDevice::metric(), unhandled metric %d\n", metric);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user