Revert "fix: jagged edges on ddciicon"
This reverts commit da27fb74b3.
Issue: https://github.com/linuxdeepin/developer-center/issues/9443
This commit is contained in:
parent
9c06164a2e
commit
da12696b21
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue