From 9c2af0a6edd6919750f78301fcae1bc12ba84db6 Mon Sep 17 00:00:00 2001 From: zeljko Date: Mon, 14 May 2018 17:08:44 +0000 Subject: [PATCH] Qt5: added QPaintDevice_devicePixelRatioF() git-svn-id: trunk@57933 - --- lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.cpp | 6 ++++++ lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.h | 1 + 2 files changed, 7 insertions(+) diff --git a/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.cpp b/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.cpp index 697d2e4d05..ec9d80b173 100644 --- a/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.cpp +++ b/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.cpp @@ -71,6 +71,12 @@ int QPaintDevice_devicePixelRatio(QPaintDeviceH handle) return (int) ((QPaintDevice *)handle)->devicePixelRatio(); } +qreal QPaintDevice_devicePixelRatioF(QPaintDeviceH handle) +{ + return (qreal) ((QPaintDevice *)handle)->devicePixelRatioF(); +} + + int QPaintDevice_colorCount(QPaintDeviceH handle) { return (int) ((QPaintDevice *)handle)->colorCount(); diff --git a/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.h b/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.h index 7dceb64fc7..64c7e0aaeb 100644 --- a/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.h +++ b/lcl/interfaces/qt5/cbindings/src/qpaintdevice_c.h @@ -27,6 +27,7 @@ C_EXPORT int QPaintDevice_logicalDpiY(QPaintDeviceH handle); C_EXPORT int QPaintDevice_physicalDpiX(QPaintDeviceH handle); C_EXPORT int QPaintDevice_physicalDpiY(QPaintDeviceH handle); C_EXPORT int QPaintDevice_devicePixelRatio(QPaintDeviceH handle); +C_EXPORT qreal QPaintDevice_devicePixelRatioF(QPaintDeviceH handle); C_EXPORT int QPaintDevice_colorCount(QPaintDeviceH handle); C_EXPORT int QPaintDevice_depth(QPaintDeviceH handle);