-
Notifications
You must be signed in to change notification settings - Fork 55
fix: window preview blurry #1070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's Guide by SourceryThis pull request enhances the clarity of window previews by directly utilizing the original image and eliminating anti-aliasing. The changes involve removing the pixmap scaling with smooth transformation, disabling anti-aliasing render hints, and drawing the original pixmap. Updated class diagram for AppItemWindowDeletegateclassDiagram
class AppItemWindowDeletegate {
-radius: int
+paint(painter: QPainter, option: QStyleOptionViewItem, index: QModelIndex)
}
note for AppItemWindowDeletegate.paint "Removes anti-aliasing and draws the original pixmap"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mhduiy - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider extracting the image drawing logic into a separate function for better readability.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy 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 |
Draw directly using the original image and remove anti aliasing pms: BUG-285265
deepin pr auto review代码审查意见:
总体来说,代码的简化是积极的,但需要确保相关的显示效果和性能要求仍然得到满足。如果原始的缩放和设备像素比设置对于显示效果至关重要,那么应该考虑恢复这些代码。 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Draw directly using the original image and remove anti aliasing
pms: BUG-285265
Summary by Sourcery
Bug Fixes: