Repository navigation
feat: replace Qt keywords with Q_ macros - #395
18202781743 wants to merge 1 commit into
Conversation
Reviewer's GuideThe PR makes the codebase compatible with QT_NO_KEYWORDS by enabling the compile definition and systematically replacing Qt keyword syntax with Q_ macro equivalents without changing signal behavior. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
488650b to
a3a8166
Compare
Replace emit/signals:/slots: with Q_EMIT/Q_SIGNALS:/Q_SLOTS: to avoid naming conflicts with pure C++ or third-party libraries. Add QT_NO_KEYWORDS compile definition after project() in CMakeLists.txt. 将 emit/signals:/slots: 替换为 Q_EMIT/Q_SIGNALS:/Q_SLOTS:, 避免纯 C++ 或第三方库引入时的命名冲突。在 CMakeLists.txt 中 添加 QT_NO_KEYWORDS 编译定义。 Log: 替换Qt关键字为宏形式并添加QT_NO_KEYWORDS编译定义 Influence: 无行为变更,仅关键字到宏的替换,解决第三方库命名冲突。
a3a8166 to
5e8a918
Compare
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, wineee 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 |
审查结论未发现阻塞问题(静态审查)。 已核对:
当前 PR 的完整构建任务未实际执行,建议合并前补跑一次 Qt6 全量构建。 |
Replace Qt keywords (emit/signals/slots) with Q_ macros (Q_EMIT/Q_SIGNALS/Q_SLOTS) to avoid naming conflicts with third-party libraries.
Add QT_NO_KEYWORDS compile definition in CMakeLists.txt.
Issue: DDE-499
Summary by Sourcery
Use Qt's Q_ macro equivalents and disable legacy Qt keywords to avoid symbol naming conflicts.
Enhancements:
Build: