Skip to content

Commit 26c3977

Browse files
re2zerodeepin-bot[bot]
authored andcommitted
fix(icons): restore smooth scaling to prevent jagged icon edges
Restore smooth=true behavior to avoid jagged edges when icons are scaled. 恢复平滑缩放以修复图标放大时圆角显示锯齿的问题。 Log: 恢复 DQuickDciIconImage 平滑缩放 PMS: BUG-308655 Influence: 修复 QML 中 DCI 图标放大时圆角显示锯齿的问题,图标边缘更平滑。
1 parent 1998e42 commit 26c3977

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/private/dquickdciiconimage.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ DQuickDciIconImage::DQuickDciIconImage(QQuickItem *parent)
208208
, DObject(*new DQuickDciIconImagePrivate(this))
209209
{
210210
D_D(DQuickDciIconImage);
211-
setSmooth(false);
212211
connect(d->imageItem, &QQuickImage::implicitWidthChanged, this, [this, d]() { setImplicitWidth(d->imageItem->implicitWidth()); });
213212
connect(d->imageItem, &QQuickImage::implicitHeightChanged, this, [this, d]() { setImplicitHeight(d->imageItem->implicitHeight()); });
214213
connect(this, &DQuickDciIconImage::smoothChanged, d->imageItem, &QQuickImage::setSmooth);

0 commit comments

Comments
 (0)