-
Notifications
You must be signed in to change notification settings - Fork 21
sync: from linuxdeepin/dtkdeclarative #242
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
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#472
Reviewer's Guide by SourceryThis pull request synchronizes source files from linuxdeepin/dtkdeclarative. The key changes involve refactoring the No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot 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 |
deepin pr auto review关键摘要:
是否建议立即修改:
|
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 @deepin-ci-robot - I've reviewed your changes - here's some feedback:
Overall Comments:
- The
Qt.pointfunction inWindowButton.qmlmight be performance bottleneck, consider caching the result. - In
TitleBar.qml, consider usingvisible: __isFullScreen && autoHideOnFullscreeninstead of changing the parent ofHoverHandler.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 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.
| HoverHandler { | ||
| enabled: __isFullScreen && autoHideOnFullscreen | ||
| id: hoverHandler | ||
| // reset it's parent to disable HoverHandler | ||
| parent: __isFullScreen && autoHideOnFullscreen ? control : null | ||
| } |
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.
suggestion: Clarify using 'parent' to disable HoverHandler
Using the parent assignment as a means to conditionally disable the HoverHandler is non-standard. It might be clearer and more maintainable to bind the 'enabled' property directly to the condition.
| HoverHandler { | |
| enabled: __isFullScreen && autoHideOnFullscreen | |
| id: hoverHandler | |
| // reset it's parent to disable HoverHandler | |
| parent: __isFullScreen && autoHideOnFullscreen ? control : null | |
| } | |
| HoverHandler { | |
| id: hoverHandler | |
| enabled: __isFullScreen && autoHideOnFullscreen | |
| } |
Synchronize source files from linuxdeepin/dtkdeclarative.
Source-pull-request: linuxdeepin/dtkdeclarative#472
Summary by Sourcery
Refactors the WindowButton component to inherit from D.IconButton and improves focus handling. Updates the TitleBar component to conditionally enable HoverHandler based on fullscreen status.
Enhancements: