Give QPlatformPlaceholderScreen a DPR of 1

Use the default logicalDpi() implementation, which now
returns logicalBaseDpi() and ensures a default device
pixel ratio of 1.


Change-Id: Idd408261c90b112a093c82695ff9e0078e90ac41
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Morten Johan Sørvig 2020-10-05 11:29:54 +02:00
parent 59498964c9
commit 227fa93c27

View File

@ -186,7 +186,6 @@ public:
bool isPlaceholder() const override { return true; } bool isPlaceholder() const override { return true; }
QRect geometry() const override { return QRect(); } QRect geometry() const override { return QRect(); }
QRect availableGeometry() const override { return QRect(); } QRect availableGeometry() const override { return QRect(); }
QDpi logicalDpi() const override { return QDpi(72, 72); }
int depth() const override { return 32; } int depth() const override { return 32; }
QImage::Format format() const override { return QImage::Format::Format_RGB32; } QImage::Format format() const override { return QImage::Format::Format_RGB32; }
QList<QPlatformScreen *> virtualSiblings() const override; QList<QPlatformScreen *> virtualSiblings() const override;