Repository navigation
chore: replace Qt keywords with macros (QT_NO_KEYWORDS) - #739
Open
18202781743 wants to merge 1 commit into
Open
18202781743 wants to merge 1 commit into
18202781743 wants to merge 1 commit into
Conversation
Contributor
|
Skipping CI for Draft Pull Request. |
Contributor
|
[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
|
18202781743
force-pushed
the
agent/bot/c3e499a90052
branch
from
October 29, 2026 02:06
2c1bd1c to
68c4c76
Compare
18202781743
marked this pull request as ready for review
October 29, 2026 02:08
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. 无功能变更,仅为机械性关键字替换
18202781743
force-pushed
the
agent/bot/c3e499a90052
branch
from
October 29, 2026 02:24
68c4c76 to
e0dd298
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: