diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-11-22 16:17:10 +0100 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-11-22 20:09:23 +0100 |
| commit | c853054910552f5fef04797222dde0d29a0c340d (patch) | |
| tree | e9892b0f49ce4e8126aa8bd9fa93427ec8d62f9c /src/corelib/serialization/qjsonparser.cpp | |
| parent | 0c0fe5f2f118fabdfb9282e72dcff781afe5733a (diff) | |
macOS: Return high-DPI pixmaps from QCocoaTheme::standardPixmap
Most consumers feed the pixmaps into a QIcon, pulling out pixmaps
of sizes 32, 64, 128, 256, 512, so consumers of that QIcon will
not see low-resolution pixmaps for the common sizes like 64x64.
However if someone uses standardPixmap directly, or request an
icon with size 512x512, we won't have a high-DPI pixmap.
Unlike QStyle::standardPixmap we don't have a QWidget/QWindow
argument we can use to resolve the target DPR, so we have to
assume the pixmap can be used anywhere, and use the highest
DPR we've seen so far, via QGuiApplication::devicePixelRatio().
Change-Id: I3f41299b180f9361e3c7b1cd1f9bf4b1d00344da
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonparser.cpp')
0 files changed, 0 insertions, 0 deletions
