Fix for build on drone.io.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-08 19:57:50 +03:00
parent c630b2e0fc
commit 4121dc7689
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;