feat: add hasInWindowBlur property to DQMLGlobalObject#627
Conversation
1. Added new `hasInWindowBlur` property to `DQMLGlobalObject` for QML access 2. Updated InWindowBlur component to use `hasInWindowBlur` for blur disabling 3. Updated debian/control with minimum version requirements for dtk dependencies 4. Changed copyright year to 2023-2026 Log: Added hasInWindowBlur QML property for blur availability check Influence: 1. Test hasInWindowBlur property returns correct boolean on various platforms 2. Verify InWindowBlur component disables blur when hasInWindowBlur is false 3. Test build and installation with different dtk versions 4. Verify version dependency requirements in debian/control 5. Test blur rendering behavior with software renderer 6. Verify signal emission when hasInWindowBlur changes feat: 添加 hasInWindowBlur QML 属性和版本依赖 1. 为 DQMLGlobalObject 添加了新的 hasInWindowBlur 属性供 QML 访问 2. 更新 InWindowBlur 组件使用 hasInWindowBlur 来控制模糊效果开关 3. 更新 debian/control 文件增加 dtk 依赖的最低版本要求 4. 将版权年份更新为 2023-2026 Log: 新增 hasInWindowBlur QML 属性用于检测模糊可用性 Influence: 1. 测试 hasInWindowBlur 属性在不同平台上返回正确布尔值 2. 验证当 hasInWindowBlur 为 false 时 InWindowBlur 组件正确关闭模糊效果 3. 测试不同 dtk 版本下的构建和安装 4. 验证 debian/control 中的版本依赖要求 5. 测试配合软件渲染器时模糊效果的行为 6. 验证 hasInWindowBlur 变化时信号正确发射 PMS: TASK-390117
There was a problem hiding this comment.
Sorry @18202781743, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的 Git Diff。本次修改主要涉及三个方面:Debian 包依赖版本约束更新、版权声明年份更新,以及为 DTK 新增 整体来看,代码逻辑清晰,修改意图明确。但为了确保代码的健壮性、安全性和可维护性,我针对语法逻辑、代码质量、代码性能和代码安全四个方面提出以下审查意见和改进建议: 1. 语法与逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与修改示例如果你确认 dqmlglobalobject_p.h: // 修改为 CONSTANT,移除 NOTIFY
Q_PROPERTY(bool hasInWindowBlur READ hasInWindowBlur CONSTANT)
// ...
// 移除信号声明
// void hasInWindowBlurChanged(); dqmlglobalobject.cpp: bool DQMLGlobalObject::hasInWindowBlur()
{
// 使用 static 缓存,提升性能,与 isSoftwareRender 保持一致
static bool hasBlur = DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasInWindowBlur);
return hasBlur;
}debian/control: 希望这些审查意见对你有所帮助!如果有任何疑问,欢迎继续探讨。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, fly602, 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 |
Summary
hasInWindowBlurproperty toDQMLGlobalObjectQML singletonD.DTK.hasInWindowBlurbefore enabling blurIssue
https://pms.uniontech.com/task-view-390117.html
Dependencies
HasInWindowBlurattribute (>> 6.7.42 / >> 5.7.42)disableInWindowBlurconfig key (>> 6.7.42 / >> 5.7.42)Test Plan