summaryrefslogtreecommitdiffstats
path: root/tests/manual/highdpi/dragwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/highdpi/dragwidget.cpp')
-rw-r--r--tests/manual/highdpi/dragwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/highdpi/dragwidget.cpp b/tests/manual/highdpi/dragwidget.cpp
index 674b2e6a0d..bd65fcf81b 100644
--- a/tests/manual/highdpi/dragwidget.cpp
+++ b/tests/manual/highdpi/dragwidget.cpp
@@ -162,8 +162,8 @@ void DragWidget::mousePressEvent(QMouseEvent *event)
mimeData->setData("application/x-hotspot",
QByteArray::number(hotSpot.x()) + ' ' + QByteArray::number(hotSpot.y()));
- const qreal dpr = devicePixelRatioF() > 1 && !(QGuiApplication::keyboardModifiers() & Qt::ShiftModifier)
- ? devicePixelRatioF() : 1;
+ const qreal dpr = devicePixelRatio() > 1 && !(QGuiApplication::keyboardModifiers() & Qt::ShiftModifier)
+ ? devicePixelRatio() : 1;
QPixmap pixmap(child->size() * dpr);
pixmap.setDevicePixelRatio(dpr);