sync: from linuxdeepin/dde-session-shell#429
Conversation
Reviewer's GuideSynchronized upstream changes, modifying the DLineEditEx load slider animation range. Sequence Diagram: DLineEditEx Animation Parameter UpdatesequenceDiagram
participant DLineEditEx
participant m_animation as QPropertyAnimation
DLineEditEx->>m_animation: setStartValue(QPoint(0 - 10, 0))
DLineEditEx->>m_animation: setEndValue(QPoint(width() - 50, 0))
Updated Class Diagram for DLineEditExclassDiagram
class DLineEditEx {
+startAnimation() : void
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @deepin-ci-robot - I've reviewed your changes and they look great!
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.
| m_loadSlider->show(); | ||
| m_loadSlider->resize(40, height()); | ||
| m_animation->setStartValue(QPoint(0 - 40, 0)); | ||
| m_animation->setEndValue(QPoint(width(), 0)); | ||
| m_animation->setStartValue(QPoint(0 - 10 , 0)); | ||
| m_animation->setEndValue(QPoint(width() - 50, 0)); | ||
| m_animation->start(); |
There was a problem hiding this comment.
suggestion: Avoid hard-coded offsets for animation start/end
Calculate the offsets using m_loadSlider->width() to ensure correct animation positions if the slider size changes.
| m_loadSlider->show(); | |
| m_loadSlider->resize(40, height()); | |
| m_animation->setStartValue(QPoint(0 - 40, 0)); | |
| m_animation->setEndValue(QPoint(width(), 0)); | |
| m_animation->setStartValue(QPoint(0 - 10 , 0)); | |
| m_animation->setEndValue(QPoint(width() - 50, 0)); | |
| m_animation->start(); | |
| m_loadSlider->show(); | |
| m_loadSlider->resize(40, height()); | |
| int sliderWidth = m_loadSlider->width(); | |
| m_animation->setStartValue(QPoint(0 - sliderWidth, 0)); | |
| m_animation->setEndValue(QPoint(width() - sliderWidth, 0)); | |
| m_animation->start(); |
62627a3 to
53c993e
Compare
deepin pr auto review关键摘要:
是否建议立即修改:
|
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#15
53c993e to
250d126
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot, yixinshark 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 |
Synchronize source files from linuxdeepin/dde-session-shell.
Source-pull-request: linuxdeepin/dde-session-shell#15
Summary by Sourcery
Enhancements: