test: migrate unit tests from Qt5 to Qt6 compatibility#88
Conversation
- Remove Qt::AA_UseHighDpiPixmaps (removed in Qt6) - Remove QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS (removed in Qt6 QTest) - Add QT_VERSION_CHECK guards for QMouseEvent constructor changes - Replace obsolete PaddleOCRApp with OCREngine - Fix CMakeLists.txt: add missing source dirs, link Qt::Test/DBus - Fix mainWindow null pointer crash in MainWidget::setupUi - 移除Qt6中已删除的AA_UseHighDpiPixmaps和GPU黑名单宏 - 添加QMouseEvent构造函数Qt5/Qt6版本条件编译 - 替换已废弃的PaddleOCRApp为OCREngine - 修复CMakeLists.txt缺少的源目录和链接库 - 修复MainWidget::setupUi中mainWindow空指针崩溃 Log: 单元测试迁移Qt6兼容并修复相关编译和运行问题 Influence: 单元测试可在Qt6环境下正常编译运行,修复源码中一处潜在的空指针崩溃
|
/merge |
deepin pr auto review你好!我是CodeGeeX。我已经仔细审查了你提供的Git Diff,这份代码主要涉及了CMake构建配置的更新、UI空指针防护、OCR引擎的替换(从 以下是我从语法逻辑、代码质量、代码性能和代码安全四个维度提出的详细审查意见和改进建议: 一、 语法与逻辑
二、 代码质量
三、 代码性能
四、 代码安全
总结本次 Diff 的核心目标(重构引擎、适配Qt6、增加空指针防护)是清晰且合理的。最严重的问题是测试代码中的死循环风险和 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx 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 |
Remove Qt::AA_UseHighDpiPixmaps (removed in Qt6)
Remove QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS (removed in Qt6 QTest)
Add QT_VERSION_CHECK guards for QMouseEvent constructor changes
Replace obsolete PaddleOCRApp with OCREngine
Fix CMakeLists.txt: add missing source dirs, link Qt::Test/DBus
Fix mainWindow null pointer crash in MainWidget::setupUi
移除Qt6中已删除的AA_UseHighDpiPixmaps和GPU黑名单宏
添加QMouseEvent构造函数Qt5/Qt6版本条件编译
替换已废弃的PaddleOCRApp为OCREngine
修复CMakeLists.txt缺少的源目录和链接库
修复MainWidget::setupUi中mainWindow空指针崩溃
Log: 单元测试迁移Qt6兼容并修复相关编译和运行问题
Influence: 单元测试可在Qt6环境下正常编译运行,修复源码中一处潜在的空指针崩溃