diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-11-12 10:46:00 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-11-15 11:55:05 +0000 |
commit | 54f5b8975055f1d48c74efab085acd6338aa1e3c (patch) | |
tree | 435992b30830a3f9579e09e8ddc9e53c9f0f39f4 /header.LGPL-NOGPL2 | |
parent | 9f48f1ebc21f783cd8bb7daab942d70aebf085bc (diff) |
Fix: QIcon high dpi scaling when aspect ratio differs
When an icon engine is asked to produce a pixmap scaled to a certain
size, it may return one with a different aspect ratio than
requested. In particular, an SVG will use its own aspect ratio, as it
should. QIcon's DPR calculation would break down in this case,
resulting in ugly scaling.
Fixes: QTBUG-79371
Change-Id: Id97049259dcee1a2980474250ef1163be5639085
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'header.LGPL-NOGPL2')
0 files changed, 0 insertions, 0 deletions