fix(style): fix visual artifacts after deselecting list items at highDPI#307
Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom Mar 9, 2026
Merged
fix(style): fix visual artifacts after deselecting list items at highDPI#307deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
… DPI Use setClipRect to limit drawing area and prevent antialiasing artifacts from extending beyond item boundaries. 使用setClipRect限制绘制区域,防止反锯齿伪影超出item边界。 Log: 修复高DPI缩放下列表项取消选中后的视觉残留问题 PMS: BUG-332513 Influence: 修复后在125%及更高DPI缩放下,列表项取消选中后不再出现视觉残留横线,同时保持圆角平滑效果,不影响其他项的正常显示。
Contributor
deepin pr auto review这段代码修改主要涉及 Qt 样式绘制逻辑的调整,特别是在处理列表项选中状态时的绘制行为。以下是对该 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与改进建议这段代码修改是高质量的,主要解决了绘图状态污染和绘制越界的问题。 改进建议:
总体而言,这是一个很好的代码优化提交,提升了 UI 渲染的稳定性和准确性。 |
18202781743
approved these changes
Mar 9, 2026
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, add-uos The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use setClipRect to limit drawing area and prevent antialiasing artifacts from extending beyond item boundaries.
使用setClipRect限制绘制区域,防止反锯齿伪影超出item边界。
Log: 修复高DPI缩放下列表项取消选中后的视觉残留问题
PMS: BUG-332513
Influence: 修复后在125%及更高DPI缩放下,列表项取消选中后不再出现视觉残留横线,同时保持圆角平滑效果,不影响其他项的正常显示。