summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-08-06 21:44:49 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-11-09 00:36:54 +0200
commitab88b85e4e398f624db99f2d6d3f16c8d8a545bd (patch)
tree1d6d58bfa14641b055af03dd4ecd13995d17e7f7
parent8d7b49e91e85077f285e468f149270d4b13df041 (diff)
Port from devicePixelRatioF() to devicePixelRatio()
Change-Id: Ic0a12db2e62e1e027f352a150ffd276bc0f84b56 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
-rw-r--r--src/activeqt/container/qaxwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activeqt/container/qaxwidget.cpp b/src/activeqt/container/qaxwidget.cpp
index 6316fac..861c23d 100644
--- a/src/activeqt/container/qaxwidget.cpp
+++ b/src/activeqt/container/qaxwidget.cpp
@@ -1883,7 +1883,7 @@ void QAxHostWidget::paintEvent(QPaintEvent*)
QPainter painter(this);
QPixmap pixmap = qt_pixmapFromWinHBITMAP(hBmp);
- pixmap.setDevicePixelRatio(devicePixelRatioF());
+ pixmap.setDevicePixelRatio(devicePixelRatio());
painter.drawPixmap(0, 0, pixmap);
SelectObject(hBmp_hdc, old_hBmp);