Commit Graph

2207 Commits

Author SHA1 Message Date
wang fei 93766a1e3a fix: 自定义水印文字问题
非自定义时,隐藏输入框;
自定义时,显示输入框。

Log: 修复自定义水印文字问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 自定义水印输入框
Change-Id: Ibff01f401db9c93e773fe8f16755554a1256f547
2022-09-19 09:14:29 +08:00
wang fei d6a39f1458 fix: 打印预览页面设置间距不对
设置打印预览页边距UI的间距为10px

Log: 修复页面设置间距不对的问题
Bug: https://pms.uniontech.com/bug-view-158805.html
Influence: 打印预览页边距UI
Change-Id: I3553112e875a924cd1b322384c04a722ec48727b
2022-09-19 09:14:05 +08:00
wang fei ad06bf3ba3 fix: error状态一开始就默认出现
初始化时setAlert为false

Log: 修复error状态一开始就默认出现问题
Bug: https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览页面范围输入状态
Change-Id: I47e5e5c0f8a8b082e973eb671dcab8208ca2e677
2022-09-19 09:05:16 +08:00
wang fei 901d51d760 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-19 09:04:54 +08:00
wang fei 4c1da9f2e8 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-19 09:04:54 +08:00
Ye ShanShan 9acfe95866 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-09-14 16:53:16 +08:00
Ye ShanShan 3ecb755c02 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-09-02 14:07:10 +08:00
Ye ShanShan c40e762d79 fix: incompatible because of added clone function
Add clone() override, it can't find DStandardItem::clone symbol
in some scene,
  for example, class A inherited DStandardItem, it compiled in
environment that has the symbol, and it run in not has symbol
environment.
  we can't use textActionList() and actionList() to get data
when draged with Action Item, because create a new QStandardItem
instead of DStandardItem, we should record the origin data ourselves.
  we can't use DVtableHook::overrideVfptrFun, we don't have
right time to override clone() function, because we don't implement
constructor.

Log: 添加重写的虚函数clone导致接口不兼容
But: https://pms.uniontech.com/bug-view-156901.html
Influence: 文管应用在高版本的dtkwidget下打包,低版本的dtkwidget下无法启动
Change-Id: I38da9ec4694a3c67510415989e516f5f977d4bf7
2022-09-02 12:15:46 +08:00
Ye ShanShan 9149e4eff3 fix: DListView's size calculates error
miss to cast for QList<DViewItemAction*>,
only cast DViewItemActionList, it causes sizeHint calculates error.

Log: DListView的sizeHint计算错误导致各项堆叠
Bug: https://pms.uniontech.com/bug-view-155683.html
Influence: 用到了DListView,并且使用到了DViewItemAction的所有应用
Change-Id: I13506bcfed970c9733a50130c92e421e71457805
2022-08-29 09:55:21 +08:00
ck f8ac408fcd 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-08-25 16:46:59 +08:00
ck 6a91b1bf5b fix: DArrowRectangle FloatWidget mode UI incorrect
set GraphicsGlowEffect in FloatWidget mode on X11

Log:
Influence: x11 DArrowRectangle::FloatWidget ui
Change-Id: I3d9dba67b3f9c23beaf47b29d15a19999200cfbc
2022-08-18 14:03:28 +08:00
ck 370a5b3372 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-08-15 13:20:48 +08:00
Ye ShanShan 4b0c521c39 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-08-12 13:43:10 +08:00
Chen Bin bf464eb4bb feat: 添加水印的行距和间距的控制
1. 在插件属性类中增加相关变量控制行距和间距。
2. 打印预览内部目前不提供相关接口,仅提供属性支持。
3. 行距和间距都针对水印的当前大小进行比例计算。
4. 默认情况下,水印间距是一个固定值。

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

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

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

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

Log:
Change-Id: I7af2de238070263be92d1b84f0f4ac136c1b1625
2022-08-11 16:25:15 +08:00
Ye ShanShan 1adf33157b 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-08-11 11:08:56 +08:00
Stallman Wang 00a156a442 fix: build failed when the .git folder exist (#136)
Change-Id: I078cb29c8c4003eded273e72b46e2305f1399921
2022-08-11 11:08:56 +08:00
justforlxz faf63b9231 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 时文字不显示
Change-Id: Ib7258364c17ff18c5f7cc9cf5f9aa21a52c0f53e
2022-08-11 11:08:56 +08:00
ck 4a7b602098 chore: 示例代码微调
示例代码微调,去掉无效日志,头文件等

Log: 
Influence: none
Change-Id: I2a0f0721246264d88d3e98f212722c4e1540b6fb
2022-08-11 11:08:56 +08:00
ck 4d057401ce 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-08-11 11:08:56 +08:00
Ye ShanShan 953eeae865 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-08-11 11:08:56 +08:00
Ye ShanShan b5d55ec91a chore: DFlowLayout's ut error
ut error

Log: 
Influence: none
Change-Id: I4b3ff97e9588ff7678f74218c21f440270893042
2022-08-11 11:08:56 +08:00
Ye ShanShan fce735a071 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-08-11 11:08:56 +08:00
ck 7e43d922a5 fix: 调用语音助手服务不响应导致右键菜单卡死
语音助手在某些情况下会不响应,这是直接构造 QDBusInterface
会卡死,加一个 Ping 的操作,如果 300ms 内未响应则不添加
相关菜单

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

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

Log: 修复双击标记框内标记后面追加文字问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ia582ebf7f40b8180352bfdfec09ac5f615047212
2022-07-22 16:03:02 +08:00
deepin-bot[bot] 485d50c2a1
chore: Sync by (#129)
chore: Sync by
2022-07-19 10:18:35 +00: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
justforlxz 8731e17ede feat: update archlinux build
update archlinux build

Log:
2022-06-21 17:44:11 +08:00
justforlxz 2a5ef1a4b2 feat: add archlinux build
sync from deepin-community

Log:
2022-06-21 13:07:39 +08:00
WangFei df844cf227
fix: 非激活listview内的字体样式未置灰 (#115)
1.判断listview窗体是否激活,设置其状态。
2.设置非激活状态下的colorgroup为QPalette::Inactive。

Log: 修复非激活listview内字体样式未置灰问题
Bug: https://pms.uniontech.com/bug-view-138395.html
Influence: listview非激活状态UI
Change-Id: I75561d5a5c6b7bac3766b3a2585544ff16ba9a5e
2022-06-15 11:20:01 +08:00
WangFei 550aab7ab5
fix: 双击文件标记框后会随机变色 (#116)
双击时保存当前文本内容和当前背景色。
如果文本没有变化,则仍然使用当前背景色。

Log: 修复双击文件标记框后会随机变色问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ic0315f06bb2ee55da94e8cf9e1bdfd8a649e7922
2022-06-15 09:52:18 +08:00
WangFei 5ccf4f5505
fix: 设置界面backgrounGroup背景色问题 (#114)
设置backgroundGroup的useWidgetBackground为false

Log: 修复设置界面backgroundGroup背景色问题
Bug: https://pms.uniontech.com/bug-view-138331.html
Influence: 设置界面背景色
2022-06-13 09:43:08 +08:00
AlexOne e78a195b8a fix: 废弃的接口更新
旧的接口拼写错误,新版已经不再需要

Log:
Influence: none
2022-05-27 02:58:09 +00:00
993381 f32d3749c9
fix: 打印预览titlebar不跟随主题变化 (#109)
主动设置了titlebar的palette后,要在主题变化的时候再次主动更新

Log:
Bug: https://pms.uniontech.com/bug-view-129709.html
Influence: 标题栏随主题色变化

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-25 15:55:56 +08:00
deepin-bot[bot] ca848ac312
chore: Sync by 99dfe0471c (#107)
chore: Sync by 99dfe0471c
2022-05-19 03:38:51 +00:00
993381 bc050fca88
fix: wayland环境网络链接对话框点击无效 (#106)
网络连接对话框在设置了屏幕缩放的情况下会透过鼠标事件
导致点击不上按钮,原因是setMask之前要清空旧值

Log:
Bug: https://pms.uniontech.com/bug-view-130007.html
Influence: DarrowRectangle的点击操作

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-18 15:48:56 +08:00
993381 b479f9f513
chore: wayland无标题栏兼容旧版kwin (#104)
适配了无标题栏后,旧版kwin上的无标题栏会显示两列按钮
不支持无标题栏时dtk的标题栏不应该显示菜单

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 11:36:29 +08:00
993381 57ee818e5f
chore: 更新README添加plugin的编译方法 (#102)
之前的plugin未添加编译依赖,现在在README文件中说明

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 10:53:39 +08:00
deepin-bot[bot] 77acfbb4cd
File Sync from linuxdeepin/.github (#101)
chore: Sync by b5a441b9bb
2022-04-21 06:54:38 +00:00
wang fei 8ffcbd0750 fix: wayland下tooltips没有跟随输入框
增加对UpdateRequest事件类型的判断

Log: 修复wayland下tooltips未跟随输入框问题
Bug: https://pms.uniontech.com/bug-view-124413.html
Influence: 输入框警告信息
2022-04-20 12:46:33 +00:00
deepin-bot[bot] 619ae2a39a
chore: Sync by 41155231b0 (#100)
chore: Sync by 41155231b0
2022-04-18 09:42:12 +00:00
mike 1733c3f590
chore: 非chameleon风格时标题栏图标正常绘制 (#96)
非chameleon风格时标题栏按钮图标显示异常,特别是菜单按钮SP_TitleBarMenuButton
在qcommonstyle中显示的是qtlogo,此处按照dstyle的逻辑将icon直接设置好。

Log:
Influence: 非uos风格下标题栏图标
Change-Id: Ife805d7aa542619fafa76f2cdc3809831e0b2047

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:32:38 +08:00
mike d1ab823a1f
chore: DTextEdit crashed when NoTextInteraction was set (#97)
when NoTextInteraction was set, createStandardContextMenu() return nullptr.

Log: DTextEdit崩溃问题修复
Influence: DTextEdit-menu-crash
Change-Id: I632d90555809bcb844fab7e1fbbccf3e816e8b3a

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:31:45 +08:00