diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-02-16 11:44:52 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-02-20 23:08:01 +0100 |
commit | 8a19f3c089deafa8a3a5fa5a05baa7ca01d8ec14 (patch) | |
tree | 088378abb3c11adb9f0e10483b823ed80ea816d1 /src/plugins/platforms/wasm/qwasmdom.cpp | |
parent | 02dbabdc708a570612dc12c137ab2ead6da3aadf (diff) |
Apple icon engine: maintain aspect ratio of image
Don't return fixed square icon sizes from availableSizes(), respect the
aspect ratio of the input image we get from the system, and return an
actualSize() that fits into the requested size, but uses the image's
aspect ratio as well.
Reuse the calculation in the rendering code.
Amends 5b993fa8ede67871a8b2434505bc3c3d8bb906c6.
Fixes: QTBUG-121764
Pick-to: 6.7
Change-Id: I672b90a1fbecb662fd6614dcfa5090e28b16f3c8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmdom.cpp')
0 files changed, 0 insertions, 0 deletions