Revert "fix: jagged edges on ddciicon"

This reverts commit da27fb74b3.

Issue: https://github.com/linuxdeepin/developer-center/issues/9443
This commit is contained in:
ck 2024-07-01 13:29:36 +08:00 committed by mike
parent 9c06164a2e
commit da12696b21
1 changed files with 1 additions and 2 deletions

View File

@ -729,8 +729,7 @@ void DDciIconPrivate::paint(QPainter *painter, const QRectF &rect, Qt::Alignment
if (rect.width() < targetRect.width())
targetRect = rect;
auto scaleImage = layer.scaled(targetRect.size().toSize(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
painter->drawImage(targetRect, scaleImage);
painter->drawImage(targetRect, layer);
}
}