QWizard: Correctly calculate watermark size hint

If we have have AA_EnableHighDpiScaling on and have loaded a @2x image, layout
calculations can't use the real pixels of the QPixmap directly.

Fixes: QTBUG-73401
Change-Id: I1891411a0e359e0148476f73b6cc3a128893a374
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Kari Oikarinen 2019-01-30 15:25:34 +02:00
parent 54bcb9d42f
commit eb60877fe9
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ public:
QSize minimumSizeHint() const override {
if (pixmap() && !pixmap()->isNull())
return pixmap()->size();
return pixmap()->size() / pixmap()->devicePixelRatio();
return QFrame::minimumSizeHint();
}