fix: sound tooltip might look incorrectly when gets hovered twice#419
fix: sound tooltip might look incorrectly when gets hovered twice#419BLumia merged 1 commit intolinuxdeepin:masterfrom
Conversation
之前的修复已经在 TipsWidget 中确保了其控件本身的尺寸一定正确,不再需 要重新 resize 一次. PMS: BUG-348963 Log:
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves redundant manual resizing of the sound tooltip label in SoundView::tipsWidget(), relying instead on the existing TipsWidget behavior to ensure correct sizing and avoid visual glitches when the tooltip is hovered multiple times. Class diagram for updated SoundView tooltip sizing behaviorclassDiagram
class SoundView {
+SoundView(parent: QWidget)
+QWidget tipsWidget()
-QLabel m_tipsLabel
}
class TipsWidget {
+void ensureCorrectSize()
}
SoundView --> TipsWidget : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码是关于 DDE 深度桌面环境任务栏中声音插件的一个修改。主要是移除了在 以下是对该修改的详细审查意见: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与改进建议结论:这是一个合理的修改。它移除了硬编码的布局逻辑,让控件的尺寸管理回归到 Qt 的布局系统中,有助于保持 UI 的一致性和可维护性。 额外建议:
最终评分:该 diff 是一个良性的代码清理,建议合并,但需附带上述关于边距设置的检查。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia 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 |
之前的修复已经在 TipsWidget 中确保了其控件本身的尺寸一定正确,不再需要重新 resize 一次.
PMS: BUG-348963
Summary by Sourcery
Bug Fixes: