From 6b519092f684fd202c2f2c58737d9065e76c0cf9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 19 Nov 2016 10:13:51 +0200 Subject: [PATCH] VObjPaintDevice new enum PdmDevicePixelRatioScaled. --HG-- branch : develop --- src/libs/vobj/vobjpaintdevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/vobj/vobjpaintdevice.cpp b/src/libs/vobj/vobjpaintdevice.cpp index 62debacde..e1f42a50e 100644 --- a/src/libs/vobj/vobjpaintdevice.cpp +++ b/src/libs/vobj/vobjpaintdevice.cpp @@ -163,6 +163,9 @@ int VObjPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const return engine->getResolution(); #if QT_VERSION > QT_VERSION_CHECK(5, 0, 2) case QPaintDevice::PdmDevicePixelRatio: +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) + case QPaintDevice::PdmDevicePixelRatioScaled: +#endif return 1; #endif default: