Vista Style: Fix pixelized arrow of QCommandLinkButton with scaling

Do not unnecessarily downscale the pixmap; QIcon will set the correct
device pixel ratio.

Pick-to: 5.15
Task-number: QTBUG-86344
Change-Id: I04ba93ec3003d3dfd458b032cc5c8fc9cf38e957
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
bb10
Friedemann Kleint 2020-09-01 13:26:18 +02:00
parent 85cdc8ebc1
commit 00e181fdae
1 changed files with 1 additions and 1 deletions

View File

@ -2473,7 +2473,7 @@ QIcon QWindowsVistaStyle::standardIcon(StandardPixmap standardIcon,
QWindowsXPStylePrivate::ButtonTheme,
BP_COMMANDLINKGLYPH, CMDLGS_NORMAL);
if (theme.isValid()) {
const QSize size = (theme.size() * QWindowsStylePrivate::nativeMetricScaleFactor(widget)).toSize();
const QSize size = theme.size().toSize();
QIcon linkGlyph;
QPixmap pm(size);
pm.fill(Qt::transparent);