Commit Graph

7 Commits

Author SHA1 Message Date
heyuming e19d7fbe7a fix: unit test error under qt5
Log: 修复qt5下单元测试的错误
2023-06-21 15:47:24 +08:00
heyuming 2382ebaba2 fix: DApplication casting error
Log: 修复DApplication的转换错误
2023-06-14 10:09:43 +08:00
xzl 8d8912b04f chore: adapt REUSE license header
修改为开源合规

Log: 修改项目合规
2022-08-11 05:02:57 +00:00
Ye ShanShan 08ca143ca1 feat: Add EventLoop for ut
Add EventLoop for ut, it's useful in some scene, for example,
when deleteLater called but we need check QPointer's value now.

Log: all ut run in event loop
Influence: none
Change-Id: I1f35069215d5a6beba51c1aa1dd21f51d2e582a3
2022-07-28 17:28:50 +08:00
Wang Penga dc038432be feat: Add unit tests
为以下模块添加单元测试:
    DBoxWidget
    DBlurEffectWidget
    DIconButton
    DToolButton
    DProgressBar
    DWaterProgress
    DAnchors
    DMainWindow
    DFloatingMessage
    DSwitchButton
    DWarningButton
    DSimpleListView
    DKeySequenceEdit

Log: 为部分组件添加单元测试
Change-Id: Ic2ed6be7e54101e856f286aec3a4c549e47aaac7
2021-07-26 11:06:20 +08:00
Chen Bin 0697e9d673 chore: 单元测试文件增加copyright
补上单元测试文件遗漏的copyright。修改错误的copyright信息,
并添加部分文件遗漏的copyright

Log:
Change-Id: Ie64f70f4a1267190cae0b828b58d8a539f3c43b0
(cherry picked from commit 07a5558082047f9e7c5005ecf27c58fb027b8c96)
2021-05-08 09:55:52 +08:00
chenbin cd6a2c3f89 fix: 修复DCrumbEdit编辑状态复制不生效问题
之前的逻辑,DCrumbEdit在选中时未处理仍在编辑的状态。
编辑的状态有两种:重复标签不会生成Crumb导致处于正在
编辑、正在编辑时光标移到最后有文本没有生成Crumb。修
改方式为:添加正在编辑文本的逻辑复制的逻辑,删除之前
复制未选中编辑文本的逻辑。
并添加此bug的单元测试案例。

Log: 修复DCrumbEdit复制问题
Bug: https://pms.uniontech.com/zentao/bug-view-61562.html
Change-Id: I6b847c17bfcb6890097cf9e020965f04ca85780f
(cherry picked from commit 78565cd278)
2021-01-27 13:50:35 +08:00