fix: compatibility with Qt 6.10#660
Merged
Merged
Conversation
Credits to Antonio Rojas from Arch Linux.
There was a problem hiding this comment.
Sorry @felixonmars, 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我对这个git diff进行了审查,以下是分析和改进建议: 1. 语法逻辑分析
2. 代码质量
3. 代码性能
4. 代码安全
5. 综合建议
改进后的代码示例: # Check for Qt version and private components
set(QT6_10_OR_LATER (Qt6_VERSION VERSION_GREATER_EQUAL 6.10))
if(${QT6_10_OR_LATER})
# Qt6.10+ requires private components for advanced features
find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
find_package(Qt6 COMPONENTS WaylandClientPrivate REQUIRED)
# Verify that private components are found
if(NOT TARGET Qt6::GuiPrivate)
message(FATAL_ERROR "Qt6::GuiPrivate not found but required for Qt6.10+")
endif()
if(NOT TARGET Qt6::WaylandClientPrivate)
message(FATAL_ERROR "Qt6::WaylandClientPrivate not found but required for Qt6.10+")
endif()
endif()这些改进将使代码更加健壮、可维护,并提供更好的错误处理机制。 |
BLumia
approved these changes
Oct 15, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, felixonmars 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 |
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.
Credits to Antonio Rojas from Arch Linux.