sync: from linuxdeepin/dde-session-shell - #534
Conversation
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#86
Reviewer's GuideSynchronizes configuration profiles and extends the logo widget to support a runtime-configurable system-version label, preserving the existing detected-version fallback and adding focused unit tests for the new behavior. Sequence diagram for runtime-configurable system version textsequenceDiagram
participant DConfigHelper
participant LogoWidget
participant VersionLabel
DConfigHelper->>LogoWidget: getConfig(SYSTEM_VERSION_TEXT, "")
LogoWidget->>LogoWidget: updateVersionText(customText)
alt customText is empty
LogoWidget->>LogoWidget: getVersion()
LogoWidget->>VersionLabel: setText(detectedVersion)
else customText is configured
LogoWidget->>VersionLabel: setText(customText)
end
DConfigHelper-->>LogoWidget: SYSTEM_VERSION_TEXT change
LogoWidget->>LogoWidget: updateVersionText(value.toString())
LogoWidget->>VersionLabel: setText(configuredOrDetectedVersion)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 语法正确,逻辑清晰,无编译错误,边界处理完善 2. 代码质量 ✅评价: 优秀 ✅ 通过 潜在问题:
建议: 建议为 updateVersionText() 方法添加 @brief 文档注释,说明其功能和参数含义,与 updateLocale() 方法保持一致 3. 代码性能 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 性能良好,资源使用合理,算法复杂度合理,无性能瓶颈 4. 代码安全 🔒评价: 优秀 ✅ 通过
安全漏洞详情: 建议: 存在0个安全漏洞,无安全风险,安全合规 💡 改进建议代码示例// 建议为 updateVersionText 添加文档注释
/**
* @brief LogoWidget::updateVersionText
* 根据自定义文本更新版本显示,为空时回退到系统默认版本号
* @param customText 自定义版本文本
*/
void LogoWidget::updateVersionText(const QString &customText)
{
m_logoVersionLabel->setText(customText.isEmpty() ? getVersion() : customText);
}本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot, xionglinlin 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#86
Summary by Sourcery
Support configurable system version text on the login and lock screens while preserving the default display when no override is provided.
New Features:
Enhancements:
Tests: