Commit Graph

2473 Commits

Author SHA1 Message Date
chenhongtao 849dad5b1c chore(optionname): change optionname to better one
change the option name

now can use cmake command "ctest" to run tests

Log: change option name and etc
2022-09-02 06:06:00 +00:00
deepin-admin-bot fefabd05e1 "chore: Sync by " 2022-08-30 09:08:22 +00:00
chenhongtao 656e293fad feat(doc): add package libdtkwidget-doc
build the package for doc

Log: build the package of doc for dtkwidget
2022-08-29 05:26:42 +00:00
Ye ShanShan 5616ffd249 fix: DListView's size calculates error
miss to cast for QList<DViewItemAction*>,
only cast DViewItemActionList, it causes sizeHint calculates error.

Log: DListView的sizeHint计算错误导致各项堆叠
Bug: 
Influence: 用到了DListView,并且使用到了DViewItemAction的所有应用
Change-Id: I13506bcfed970c9733a50130c92e421e71457805
2022-08-29 09:36:10 +08:00
Ye ShanShan 94d58125ff chore: Add zh_CN readme
add README.zh_CN.md

Log: 添加中文说明文档
Influence: none
Change-Id: If8acaa008a96ea22eb924b115dfc874c81a97818
2022-08-25 13:28:47 +08:00
chenhongtao f80f48076e feat(cmake): to cmake
from qmake to cmake

Log: tocmake
2022-08-19 17:18:33 +08:00
ck c9f7ac46b7 fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Iad52d8f5622bf9035132242c0fb578e6e8d16992
2022-08-18 13:13:05 +08:00
deepin-bot[bot] 920861caf9
chore: Sync by 8fb17418f4 (#157)
chore: Sync by 8fb17418f4
2022-08-16 09:20:00 +00:00
deepin-bot[bot] c44650742c
chore: Sync by ab82576125 (#156)
chore: Sync by ab82576125
2022-08-15 23:55:31 +00:00
deepin-bot[bot] 11911422e6
chore: Sync by 8945746226 (#154)
chore: Sync by 8945746226
2022-08-15 02:34:29 +00:00
deepin-bot[bot] a54cb524d5
chore: Sync by 64c2bdac28 (#153)
chore: Sync by 64c2bdac28
2022-08-15 02:16:15 +00:00
deepin-bot[bot] e7317344dc
chore: Sync by 1086c873ff (#151)
chore: Sync by 1086c873ff
2022-08-12 01:47:12 +00:00
deepin-bot[bot] 088eb5f929
chore: Sync by 8cd7951872 (#150)
chore: Sync by 8cd7951872
2022-08-11 08:34:38 +00:00
Chen Bin 5b8db6b928 feat: 添加水印的行距和间距的控制
1. 在插件属性类中增加相关变量控制行距和间距。
2. 打印预览内部目前不提供相关接口,仅提供属性支持。
3. 行距和间距都针对水印的当前大小进行比例计算。
4. 默认情况下,水印间距是一个固定值。

Log:
Influence: None
Task: https://pms.uniontech.com/story-view-22993.html
Change-Id: I14cb4ffd635e33e441d38a46bf324177af22d42a
2022-08-11 15:52:22 +08:00
Chen Bin f6826d4941 fix: 插件控制水印大小和角度无效
水印大小错误使用角度的设置,角度未触发 editFinished 信号。

Log:
Influence: None
Change-Id: I73acf06ce93764ae86aeb0c9707580a3c11402e4
2022-08-11 15:52:22 +08:00
Chen Bin 332c8d32fc fix: 增加宏定义以控制打印预览插件相关信息
增加 DTK_PRINTSUPPORT_PLUGIN 宏,应用可通过增加宏判断
来控制是否调用打印预览插件相关接口。

Log:
Influence: None
Change-Id: I21d4c06faf99717cada8543b12e4ed643b76722b
2022-08-11 15:52:22 +08:00
Chen Bin 7f2ce6c8af fix: 未提供当前水印类型的接口
重新调整设置信息类,能够在外部控制水印类型。
并修复水印页面设置状态无法更新的问题

Log:
Influence: 打印预览功能和兼容性
Change-Id: Id0ff9317e70ba0b2781642e96821894c6bbd9ef4
2022-08-11 15:52:22 +08:00
Chen Bin d0064bd09b feat(打印预览): 增加插件控制打印属性
1. 新增插件类控制打印属性的状态(显示、禁用和隐藏)以及默认属性
2. 修改打印对话框的源代码适配插件模式
3. 新增测试用例,测试上述场景。

Log:
Change-Id: I7af2de238070263be92d1b84f0f4ac136c1b1625
2022-08-11 15:52:22 +08:00
Chen Bin 8073631e3d feat: Enable DListView and DViewItemAction to support DciIcon
1. Add an interface to set the DCI icon in DListView.
2. Add drawing support for DCI icon in DStyledItemtDelegate.

Log:
Influence: None
Change-Id: If4ed076e8c2a819b28e5d046f885a22b6c0b8272
2022-08-11 05:06:38 +00:00
xzl 8d8912b04f chore: adapt REUSE license header
修改为开源合规

Log: 修改项目合规
2022-08-11 05:02:57 +00:00
ck a393c8525e fix: 调用语音助手服务不响应导致右键菜单卡死
语音助手在某些情况下会不响应,这是直接构造 QDBusInterface
会卡死,加一个 Ping 的操作,如果 300ms 内未响应则不添加
相关菜单

Bug: https://pms.uniontech.com/bug-view-151279.html
Log:
Influence: edit context menu
Change-Id: Id8e3f6f53a011b70fa12d95ff1cc3a6fec94021b
2022-08-05 10:14:14 +08:00
wang fei 22baf6384d chore: darrowrectangle更新模糊背景调整
1.传入的路径更改为outPath.united(path);
2.使用handle方式调用模糊接口;

Log:
Influence: darrowrectangle模糊
Change-Id: If87ab051052b4288106349376acbf61d8baf7e63
2022-08-05 10:14:14 +08:00
wang fei 7baffc4704 fix: 双击标记框内标记后面追加文字
当光标在内容末尾且鼠标双击位置在光标右边时,
编辑返回false,不再编辑追加文字。

Log: 修复双击标记框内标记后面追加文字问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ia582ebf7f40b8180352bfdfec09ac5f615047212
2022-07-29 15:42:53 +08:00
Ye ShanShan 431f6730b8 fix: crashed when DListView drag item with Action
DStandardItem's `setActionList` can't be used with drag because of
Type doesn't support metatype's save and load.
  and DStandardItem doesn't release it's Action when destruction,
we use sharedpointer to manager action's life.
  Add clone override function to support that action can be access
after draged, and it need to setItemPrototype by model.

Log: 含有Action项的DListView拖动时程序崩溃
Influence: none
Change-Id: Idc489b94f4cf95850fe00a9ac8231fed80913a79
2022-07-29 00:34:15 +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
Stallman Wang d563343e45
fix: build failed when the .git folder exist (#136) 2022-07-27 11:46:15 +08:00
deepin-bot[bot] d7566247dd
chore: Sync by fed570b6d7 (#139)
chore: Sync by fed570b6d7
2022-07-26 05:29:27 +00:00
justforlxz e1a4494706 fix: DWaterProgress not displayed text when initialized to -1
The default value is 0. In setValue function, the text content will not be updated because the value is equal.

Issue: https://github.com/linuxdeepin/developer-center/issues/3292
Log: 修复 DWaterProgress 进度初始化为 0 时文字不显示
2022-07-22 16:26:51 +08:00
ck 95ef4732aa chore: 示例代码微调
示例代码微调,去掉无效日志,头文件等

Log:
Influence: none
Change-Id: I2a0f0721246264d88d3e98f212722c4e1540b6fb
2022-07-22 16:04:07 +08:00
ck a794283f50 fix: change pagesize name to readable name
use QPageSize::name() instead of QPageSize::key()
a localized human-readable name for the page size.

Log:
Influence: printpreview pagesize
Change-Id: I897ef3cc35668a87aa744dbe54f3ae3849bc2206
2022-07-22 15:16:27 +08:00
deepin-bot[bot] 43ca55a48f
chore: Sync by (#131)
chore: Sync by
2022-07-21 09:41:41 +00:00
deepin-bot[bot] 04667f55b0
chore: Sync by (#128)
chore: Sync by
2022-07-19 10:18:33 +00:00
ck c41fdded54 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Icc274d75ceddc5bc93f7abb82fce8c320676ee98
2022-07-19 10:56:30 +08:00
ck a0f310f32c chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I34dc0a957e93e33fbc03819e6ed0e0dcc9f6b6d1
2022-07-19 10:56:30 +08:00
wang fei 9e65390e76 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: Ie5893e610e0584bd56e1f5695f5c10248ad37cfb
2022-07-19 10:56:30 +08:00
ck 8182757a50 feat: DArrowRectangle 在无特效时也可以显示圆角
增加强制圆角的接口,让无窗管环境时也可以显示圆角

Log:
Influence: session-shell 提示可以显示圆角
Change-Id: Ib43360d24755e7b7664ef7d1fe4f8cc67047cb3a
2022-07-19 10:56:30 +08:00
Ye ShanShan 714f836dc4 feat: Write translation locale into `dapp_locale`
Record translation's locale to dapp_locale, it copies from
qtcreator.

Log:
Task: https://pms.uniontech.com/task-view-149553.html
Influence: DApplication添加dapp_locale属性,供其它地方进行翻译文件
的加载,例如其它插件内,可根据此值加载对应语言的翻译文件。

Change-Id: Ibe7037053a13020ba43a0d62e925d4ac5a0fd8fc
2022-07-19 10:56:30 +08:00
wang fei 1bca99b5db chore: 更新changelog
develop/snipe 分支更新changelog 到 5.5.42.1

Log:
Influence: changelog
Change-Id: I1e564861b4c7a2e72d3b2b258bd80b4b6c69aeb9
2022-07-19 10:56:30 +08:00
Ye ShanShan a1d3287e56 fix: DFlowlayout contains space also item is hidden
space is not caculated when the item is hidden, otherwise it's
verticalSpacing or horizontalSpacing is added, and later widget
is on error position.
we ignore the item including it's geometry updating, when it is empty.

Log:
Influence: 使用了DFlowLayout布局并且含有space,其中有部分控件暂时隐藏,
导致位于后面的控件其位置显示错误,多余space大小。

Change-Id: I4b2971fcb3e0ea241b290610cf30f87fb1453504
2022-07-19 10:56:30 +08:00
Ye ShanShan 08073c4ed4 chore: DFlowLayout's ut error
ut error

Log: 
Influence: none
Change-Id: I4b3ff97e9588ff7678f74218c21f440270893042
2022-07-19 10:56:30 +08:00
ck 98ca4e9b96 chore: 去掉部分构造的默认参数
多个构造的参数都是默认值时容易出现有歧义,
如:DFloatingButton button;

Task: https://pms.uniontech.com/task-view-140403.html
Log:
Influence: none
Change-Id: Id4fa3c73b63f1b8024c07c0c6eebb2b3bc318941
2022-07-19 10:56:30 +08:00
Ye ShanShan e75ab3d28b fix: boundary calculation error for DFlowLayout
1.modify `expandingDirections()` function, can't return more space
when DFlowLayout is LeftToRight flow.
2.`maxWidth` or `maxHeight` is caculated error, it causes sizeHint to
caculate to zero in some scene.
adujument error when next item just fits in a row, for example,
3.A and B's with as follow: A(100) + B(100) == Panel(200), A and B
should be on the same row.

Log:
Influence: 使用了DFlowLayout的应用,当Flow为LeftToRight时,不再在垂直
方向填充多余的空间.

Change-Id: Ia9474fc606f1b35010ffa4966b74967aad940a58
2022-07-19 10:56:30 +08:00
ck f682c39003 chore(build): fix typo
fix typo

Log: 
Influence: 
Change-Id: Ic9f3662d200e284f0a243d96a1a5c987aeb218e4
2022-07-19 10:56:30 +08:00
Ye ShanShan 395ac835e8 refactor: openUrl relays on dtkgui
openUrl function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: I2fba790a3921f90a2d2b36b889e15fa7350d1dc6
2022-07-19 10:56:30 +08:00
Ye ShanShan 143e6d08cb refactor: user manual function implication relay on dtkgui
user manual function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: Ia42dd98854a13928f97c229ae840dd2a23623fa6
2022-07-19 10:56:30 +08:00
Chen Bin e4fdfe5b36 feat: 控件适配 DCI 图标格式
1. DIconButton等按钮控件适配 DCI 图标,用户
可传入DCI 图标实例构造出一个整合图标类型。

2. 统一适配 DCI 图标的绘制操作,在 DStyle 中
完成。并适配各个图标控件。

Log: 
Influence: 图标控件
Change-Id: I763268250485cbfe7f23da08050b6e941e7263d0
2022-07-19 10:56:30 +08:00
wang fei f0e1eced4b fix: 锁屏界面网络面板显示异常,底色有重叠黑影
darrowrectangle在updateClipPath时设置属性clipPath,
并且传递参数polygon

Log: 修复锁屏界面网络面板显示异常,底色有重叠黑影问题
Bug: https://pms.uniontech.com/bug-view-124427.html
Influence: wayland下darrowrectangle的UI
Change-Id: Ie398c651c743dae514ce86ee29e88c7de1c9645b
2022-07-13 09:20:11 +00:00
Gary Wang 26509c3480 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-07-08 05:03:33 +00:00
WangFei 35ad9a9d25
fix: 设置导航栏一级菜单内容有遮挡 (#123)
一级菜单QPainter设置了字体,就用painter的
字体设置省略样式。

Log: 修复设置导航栏一级菜单内容遮挡问题
Bug: https://pms.uniontech.com/bug-view-145915.html
Influence: 设置导航栏
Change-Id: I364d06e313750e80a03aa4ecc7630975f7d34466
2022-07-08 10:30:13 +08:00
WangFei 5ef5ce8ece
fix: dspinbox不能显示警告信息 (#119)
showAlertMessasge(const QString&, int)的follower是dlineedit,
但是, dlinedit的布局里面是qlineedit,
所以在eventFilter里,检查follower的visibleRegion是空的,
修改follower为qlineedit。

Log: 修复dspinbox的showAlertMessage接口不起作用
Task: https://pms.uniontech.com/task-view-152843.html
Influence: dspinbox,lineedit警告信息
Change-Id: Ibc026ee110ee1e93e50f3788b923802488490110
2022-06-22 17:09:31 +08:00