Skip to content

Commit

Permalink
fix: Incorrect corner cutting of FloatingPanel
Browse files Browse the repository at this point in the history
When the background is transparent, the first time using ItemViewport to crop rounded corners, anti aliasing is already present, and the second time no longer requires anti aliasing

Issue: https://pms.uniontech.com/bug-view-271399.html
  • Loading branch information
mhduiy committed Sep 2, 2024
1 parent c79435a commit 37141b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions qt6/src/qml/FloatingPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Control {
radius: control.radius
hideSource: false
compositionMode: DTK.CompositionMode.Source
antialiasing: false
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/private/dquickitemviewport_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class Q_DECL_HIDDEN DQuickItemViewportPrivate : public DCORE_NAMESPACE::DObjectP
QQuickItemPrivate *d = QQuickItemPrivate::get(q_func());
maskTexture = MaskTextureCache::instance()->getTexture(d->sceneGraphRenderContext(),
qRound(radius * d->window->effectiveDevicePixelRatio()),
true);
d->antialiasing);

markDirty(DirtyMaskTexture, false);
}
Expand Down

0 comments on commit 37141b5

Please sign in to comment.