fix: add Qt6 version guard for cursor context handling #313
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.
Added conditional compilation guards around cursor context management code that is specific to Qt6. The m_cursorContext member only exists in Qt6 version, so accessing it in Qt5 builds would cause compilation errors. This fix ensures the code only compiles the Qt6-specific cursor context cleanup and reinitialization when building with Qt6 or later.
The changes include:
Influence:
fix: 为光标上下文处理添加 Qt6 版本保护
添加了条件编译保护,围绕特定于 Qt6 的光标上下文管理代码。m_cursorContext
成员仅存在于 Qt6 版本中,因此在 Qt5 构建中访问它会导致编译错误。此修复
确保代码仅在 Qt6 或更高版本构建时编译 Qt6 特定的光标上下文清理和重新初
始化。
更改包括:
Influence: