Qt5: added QPaintDevice_devicePixelRatioF()

git-svn-id: trunk@57933 -
This commit is contained in:
zeljko 2018-05-14 17:08:44 +00:00
parent c49ee01dbe
commit 9c2af0a6ed
2 changed files with 7 additions and 0 deletions

View File

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

View File

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