summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-03-01 12:15:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-23 08:32:17 +0100
commit6ec9b34cbb5fa6b1214cc6551002f46f732ba72f (patch)
treef65eb91af5b3138ee2b0f8912b44536093332827 /src/plugins
parent7067c3268a6838fcfa7d2e7584f4296e71d947ec (diff)
Make QIcon generate high-dpi pixmaps.
QIcon::pixmap() can now return pixmaps that are larger than the requested size, This is a behavior change that may require updating existing application code, and is enabled by setting Qt::AA_UseHighDPIIamges. Add new pixmap() and actualSize() overloads that take a window pointer. For 100% correctness you want to target pixmap generation to a specific window, in case the system has a mix of normal and high-dpi displays. (The non-window versions uses QGuiApplication:: devicePixelRatio(), which returns the ratio for the "best" display on the system.) actualSize now returns the size in device-independent pixels - not the pixmap pixel size. This matches its intended use case which is layout calculations. Change-Id: I2eefc4ed4aa48b036a7019446694e56213070efa Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions