Repository navigation
chore: replace Qt keywords with macros (QT_NO_KEYWORDS) - #739
18202781743 wants to merge 1 commit into
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR enables QT_NO_KEYWORDS in the build and migrates the modified production and test code from Qt keyword syntax to Q_EMIT and Q_SIGNALS, avoiding conflicts with third-party libraries while leaving vendored code untouched. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
2c1bd1c to
68c4c76
Compare
Log: 1. Replace emit/signals:/slots: with Q_EMIT/Q_SIGNALS:/Q_SLOTS: in all source and test files 2. Add QT_NO_KEYWORDS compile definition in CMake to enforce macro-only usage 3. Vendored third-party directories are not modified Influence: 1. All affected files now use Qt macro equivalents, compatible with projects defining QT_NO_KEYWORDS 2. No functional changes, mechanical keyword replacement only chore: 替换 Qt 关键字为宏形式(QT_NO_KEYWORDS) Log: 1. 将所有源文件和测试文件中的 emit/signals:/slots: 替换为 Q_EMIT/Q_SIGNALS:/Q_SLOTS: 2. 在 CMake 中添加 QT_NO_KEYWORDS 编译定义,强制使用宏形式 3. 不修改 vendored 第三方目录 Influence: 1. 所有受影响文件使用 Qt 宏等价形式,兼容定义了 QT_NO_KEYWORDS 的项目 2. 无功能变更,仅为机械性关键字替换
68c4c76 to
e0dd298
Compare
审查结论阻塞:CI 已复现 Qt6 编译失败。
建议对包含 Qt 私有头的编译单元使用 另有一处非阻塞的 SPDX 回归: |
|
TAG Bot New tag: 6.7.53 |
|
TAG Bot New tag: 6.7.54 |
|
TAG Bot New tag: 6.7.55 |
Description
Replace Qt keywords with macro equivalents to prevent naming conflicts with third-party libraries:
emit→Q_EMITsignals:→Q_SIGNALS:slots:→Q_SLOTS:Add
QT_NO_KEYWORDScompile definition in CMake to enforce macro-only usage.Notes
3rdparty/,libqt5xcbqpa-dev/,libqt6xcbqpa-dev/,qtwayland-dev/) are NOT modifieddde-qtintegrationanddde-qtplatform-pluginsuse per-targettarget_compile_definitionsinstead of globaladd_compile_definitionsto protect vendored codeset_source_files_properties(... COMPILE_FLAGS -UQT_NO_KEYWORDS)Issue: DDE-499
Summary by Sourcery
Enforce Qt macro-only keyword usage across the project to avoid conflicts with external libraries.
Enhancements:
Build:
Tests:
Chores: