Ye ShanShan
1d31804194
fix: Action's Widget shouldn't show in some time
...
DStanardAction's widget is not be repaint when the item moved
to unvisual area, it causes widget is show in origin position.
We manually hide those widget which in unvisual area after
itemdelegate painting.
Using qApp::postEvent to execute function after the PaintEvent.
Add QPointer to watch the valid of widget
Log: DStandardAction设置了widget,在item移动到不显示的区域后,没有被重
绘,导致widget仍然显示,并且位置显示错误,解决action中widget被删除程序崩
溃的bug
Influence: 使用了DListView的应用,在item位置被移动后,原来位置仍然显示
之前的控件
Change-Id: Iedac60be4039ea451da52fd04defc1c446a487f7
2022-10-10 09:51:43 +08:00
wang fei
0f2d153fc7
chore: wayland下分屏窗口在暗主题上异常
...
setBackgroundColor里面增加个isFloatWindow的判断
Log: 修复wayland下分屏窗口在暗主题上异常问题
Influence: 分屏窗口UI
Change-Id: Icc2819bc2d3033b6233ce523336daa236683e003
2022-10-10 09:51:43 +08:00
Ye ShanShan
e9375403c8
fix: FloatingButton Antialiasing doesn't obvious
...
Add Anitialiasing flag when drawing FloatingButton's panel.
Change Opacity to 0.3.
Log: 在绘制FloatingButton面板时添加抗锯齿属性
Bug: https://pms.uniontech.com/bug-view-153687.html
Influence: 所有使用了FloatingButton和CE_FloatingWidget的应用,
都会减少阴影部分的锯齿
Change-Id: Ia2bcd272056ff1dc3b03c40f03d959aa056ab2d6
2022-10-10 09:51:43 +08:00
Ye ShanShan
584fffef2d
fix: UT error
...
we remove DStandardItem::clone due to incompatible in V23,
item->clone() call QStandardItem's function actually, so it
isn't a DStandardItem, but the clone's intention need to be test.
it doesn't need to cherry-pick to master.
Log: 单元测试失败
Bug: https://pms.uniontech.com/bug-view-156901.html
Influence: 无
Change-Id: Ibac6bc721104bb0bc2f16c3a63a12fbc20e88f22
2022-10-10 09:51:43 +08:00
ck
dab8c0a590
fix: Edit focus blinks on right click
...
when calling the dbus in BlockWithGui mode , the event will
be passed to the edit, causing the edit to gain focus, and
the edit will lose focus when the menu pops up.
so Let the bullets fly
Bug: https://pms.uniontech.com/bug-view-154857.html
Log:
Inlfluence: DSearchEdit-ContextMenu-Focus
Change-Id: Ic2ee354e78dd2f2382da3d8c7877926f465d1946
2022-10-10 09:51:43 +08:00
ck
97889a8300
fix: DArrowRectangle FloatWidget mode UI incorrect
...
set GraphicsGlowEffect in FloatWidget mode on X11
Log:
Influence: x11 DArrowRectangle::FloatWidget ui
Change-Id: I3d9dba67b3f9c23beaf47b29d15a19999200cfbc
2022-10-10 09:51:43 +08:00
ck
9d4f8a4a17
fix: setBackgroundColor not work on wayland
...
wayland 下没有创建 handle,导致没有创建 blureffectwidget
需要有这个才可以让模糊的窗口在黑色背景下看清黑色的文字
增加判断只在 dwayalnd 下加上设置模糊的路径,不影响xcb逻辑
Log: 修复 wayland下 darrowrectangle 文字看不清的问题
Bug: https://pms.uniontech.com/bug-view-148535.html
Influence: wayland networkdialog
Change-Id: I9ca12630e30cca02503efa3f177f3626da749a6a
2022-10-10 09:51:43 +08:00
Felix Yan
dfc16b476c
chore: correct a typo in CMakeLists.txt
...
Correct a typo in CMakeLists.txt
Log: Correct a typo in CMakeLists.txt
2022-10-08 09:33:28 +08:00
rewine
deaa98cc55
feat: Improve version information
...
1. 使用 CMakePackageConfigHelpers 生成 Config.cmake
2. 提供 DtkWidgetConfigVersion.cmake 供调用者检查版本
3. 使用 GNUInstallDir 提供的 FULL 版本变量配置 pkg-config 路径
4. 补充 pkg-config -L 参数
5. 增加引入 dtkcore 版本检查
2022-09-30 10:21:05 +08:00
chenhongtao
624ecf0e96
feat: 将shadow的变化绑定在信号上而不使用qicontheme
...
不使用qicontheme, 让阴影在其他主题上显示正常
使用信号槽一定程度减少调用的次数
Log: 使用信号槽而不是频繁qpaint,并不使用icontheme
2022-09-27 05:51:22 +00:00
chenhongtao
1b42cb9c7d
doc(license): update license
...
README and license
Log: license
2022-09-26 01:29:21 +00:00
ck
50e9270907
chore: dtkguiplugin and readme
...
update readme and CMakeList.txt
Log: dtkguiplugin
Influence: none
Change-Id: Ib5aa55ef9464415ee2df6acabc4867431cb9bf95
2022-09-21 10:10:57 +08:00
ck
6c49fab783
chore: dtkwidget dedigner plugin tweaks
...
dtkwidget dedigner plugin tweaks and update readme
Log: plugin tweaks
Influence: none
2022-09-21 09:45:01 +08:00
ck
8e8eb018d5
chore: 使用 *.ts 添加翻译文件
...
原来使用 qmake 时,生成的 qm 文件在 src/translations 下
切换分支后,使用 src/translations/* 会重复生成相同的 qm 文件,
需要主动删除一下qm文件才可以(如 git clean -dfx),否则报错
CMake Error at Qt5LinguistToolsMacros.cmake:105 (add_custom_command):
Attempt to add a custom rule to output which already has a custom rule.
Log: none
Influence: cmake build
Change-Id: I089403b4f0406baa4f97e1270f5d092256f97fb2
2022-09-19 14:40:25 +08:00
Chen Bin
19dafe2da0
feat: Modify the menu icon
...
Change the icon of menu button to the Dci icon.
Log: Change icon
Influence: Menu button
Change-Id: Ie31f8e3e6c7141e340e4613e2f15b54b8faa83ea
2022-09-19 11:30:46 +08:00
wang fei
bed17f1066
fix: 深色模式下,预览自适应图标缺少hover press
...
1. 图标由icon类型修改为action类型
Log: 修改深色模式下,预览自适应图标缺少hover,press状态问题
Bug: https://pms.uniontech.com/bug-view-158807.html
Influence: 预览自适应图标按钮UI
Change-Id: I951879b7a471715eb4bda6c0bfd483024a63af95
2022-09-16 15:50:24 +08:00
wang fei
53b3f02b23
fix: 打印预览右侧设置项多了背景底
...
1. 设置滚动区的背景色为base。
2. 图标是icon类型不会跟随mode变化,修改成action。
3. 外层backgroundGroup并未改动调色板,不用再去适应主题变化。
Log: 修复打印预览右侧设置项背景色问题
Bug: https://pms.uniontech.com/bug-view-158795.html
Influence: 打印预览背景色
Change-Id: If0bc237ff5641f49ec2855ed84b13e6bc5b88d41
2022-09-16 15:50:24 +08:00
wang fei
fbecdac1a0
fix: error状态一开始就默认出现
...
初始化时setAlert为false
Log: 修复error状态一开始就默认出现问题
Bug: https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览页面范围输入状态
Change-Id: I47e5e5c0f8a8b082e973eb671dcab8208ca2e677
2022-09-16 15:49:57 +08:00
wang fei
48df5c340a
fix: 打印预览页面设置间距不对
...
设置打印预览页边距UI的间距为10px
Log: 修复页面设置间距不对的问题
Bug: https://pms.uniontech.com/bug-view-158805.html
Influence: 打印预览页边距UI
Change-Id: I3553112e875a924cd1b322384c04a722ec48727b
2022-09-16 15:49:26 +08:00
wang fei
5914c900c9
fix: 自定义水印文字问题
...
非自定义时,隐藏输入框;
自定义时,显示输入框。
Log: 修复自定义水印文字问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 自定义水印输入框
Change-Id: Ibff01f401db9c93e773fe8f16755554a1256f547
2022-09-16 15:49:00 +08:00
rewine
3b4fc0b888
fix: remove useless variable
...
log: 删除无用的 DtkWidget_INCLUDE_DIRS
2022-09-16 14:25:02 +08:00
rewine
1b3c54402e
chore(mkspecs): define mkspecs self
...
Log: mkspecs path
2022-09-06 15:20:25 +08:00
chenhongtao
57f2ad7713
fix(shell): wrong target
...
A mistake, since the target name changed, the target name in shell
should also change
Log: fix recoveryshell
2022-09-06 14:13:47 +08:00
chenhongtao
3102d4e6a6
fix: wrong option() usage in CMakeLists.txt
...
修复错误的 option() 用法
Log: wrong option
2022-09-02 06:47:35 +00:00
chenhongtao
96049a6d49
fix(translate): path of translate
...
Wrong path in translation , fixed
Log: fix Wrong path of translations
2022-09-02 14:09:10 +08:00
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