From 4121dc7689ace90149d9c0fe3d4b588fb83ea594 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 8 Oct 2015 19:57:50 +0300 Subject: [PATCH] Fix for build on drone.io. --HG-- branch : develop --- src/libs/vdxf/vdxfpaintdevice.cpp | 2 ++ src/libs/vobj/vobjpaintdevice.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libs/vdxf/vdxfpaintdevice.cpp b/src/libs/vdxf/vdxfpaintdevice.cpp index c9a583451..b406fd8fa 100644 --- a/src/libs/vdxf/vdxfpaintdevice.cpp +++ b/src/libs/vdxf/vdxfpaintdevice.cpp @@ -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; diff --git a/src/libs/vobj/vobjpaintdevice.cpp b/src/libs/vobj/vobjpaintdevice.cpp index f20585541..078227152 100644 --- a/src/libs/vobj/vobjpaintdevice.cpp +++ b/src/libs/vobj/vobjpaintdevice.cpp @@ -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;