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
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
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
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
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
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
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
WangFei
e3be8db577
chore: 打印预览默认pageSize的设置策略的修改 ( #94 )
...
根据A4的索引值index去设置当前默认pageSize
Log: 修改打印预览默认pageSize设置策略
Influence: 打印预览默认纸张大小
2022-04-07 10:31:36 +08:00
WangFei
73fb0a0faf
chore: 非active快捷键背景色调整 ( #95 )
...
在非active状态下,将颜色(109,109,109)
做blendColor调整后的颜色设为背景色
Log: 非active状态下,快捷键背景色调整
Influence: 快捷键样式
2022-04-01 16:53:58 +08:00
WangFei
30e1bee964
chore: DSearchCombobox控件popup后高度调整 ( #92 )
...
DSearchCombobox控件popup后高度调整为:
增加DSearchEdit高度和布局里的spacing及margin
Log: 调整DSearchCombobox控件popup后的高度
Influence: DSearchCombobox功能
2022-03-31 09:45:53 +08:00
WangFei
33055cb783
fix: 通过控制中心修改字体,全英文文件名称编辑最后一行显示超长 ( #91 )
...
修改DTextEdit的frame_radius为之前的1/2
Log: 修复通过控制中心修改字体,全英文文件名称编辑最后一行显示超长问题
Bug: https://pms.uniontech.com/bug-view-118769.html
Influence: 文本框字体显示
2022-03-24 13:03:53 +08:00
mike
d20ee61002
fix: wayland DArrowRectangle mouse propagation ( #89 )
...
* fix: wayland DArrowRectangle mouse propagation
wayland 下绘制透明的区域没有鼠标穿透导致无法点击后面的控件。
如果 handle 无效,则使用 qwidget::setmask 并且不加模糊特效
Bug: https://pms.uniontech.com/bug-view-99340.html
Influence: wayland-DArrowRectangle-dde-calendar
Change-Id: I0ce66452e443acf88cd3b5b72514ed3bff3a8bd2
* Update darrowrectangle.cpp
删掉注释的代码。
Co-authored-by: ck <chenke@uniontech.com>
2022-03-17 14:00:58 +08:00
993381
faa0551e54
fix: wayland 下关闭按钮禁用后不能取消禁用状态 ( #90 )
...
之前适配了wayland的关闭按钮的禁用功能,未考虑全面
Log:
Influence: wayland 下所有 dtk 应用的关闭按钮的禁用状态
Bug: https://pms.uniontech.com/bug-view-117469.html
Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-03-16 18:28:36 +08:00
wang fei
700b0b0aa2
feat: 长按最大化/还原按钮弹出分屏菜单
...
长按最大化/还原按钮超过300ms显示分屏菜单,
出现分屏菜单时不响应最大化/还原交互;
长按触发和鼠标移入触发显示分屏菜单后交互一致;
单击最大化/还原按钮交互不变;
Log: 增加长按最大化/还原按钮弹出分屏菜单功能
Task: https://pms.uniontech.com/zentao/task-view-101270.html
Influence: 分屏菜单显示
Change-Id: I1cd8ca87f21c54689cfb408063cbd207a33493d9
2022-03-09 21:06:34 +08:00
wang fei
d5865437ff
chore: 支持按住标题栏左上角图标拖动功能
...
设置DTitleBar的DIconButton的WA_TransparentForMouseEvents为true
Log: 屏蔽标题栏左上角图标鼠标事件
Influence: 标题栏的图标
Change-Id: I873035c2f6ebcf3285a2c0720b8849ed7920809f
2022-03-03 16:27:27 +08:00
wang fei
75c88fcac5
feat: 调整快捷键展示样式
...
修改keylabel的文本前景色为QPalette::ButtonText
Log: 调整快捷键展示样式
Task: https://pms.uniontech.com/task-view-101268.html
Influence: 快捷键样式
Change-Id: Idf031e1ad0c752844c43731a5f4899377d0d9ec7
2022-03-01 10:24:59 +08:00
AlexOne
4d4c41e396
fix: 禁用关闭按钮未能生效
...
禁用关闭按钮失败
之前改过,改了wayland平台的,但是x11还有问题
Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: 所有dtk应用的关闭按钮
Change-Id: Ieb1bcc45ec631fb55eddd8fde480b742ebc5df35
2022-02-24 13:09:23 +08:00
AlexOne
ee50d00688
fix: wayland平台关闭按钮无法禁用
...
wayland平台关闭按钮未适配,无法在设置Qt::WindowCloseButtonHint后
被禁用,对wayland平台单独处理后就可以禁用。
Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: dtk应用标题栏的关闭按钮
Change-Id: I8b25319d84c5300d97c9e9b5c2623e96b0262239
2022-02-10 13:31:38 +08:00
ck
0269489d12
fix: 备份还原选择文件时控制中心崩溃
...
备份还原使用了setfiledialog, 不应该由 dtk 释放. 释放是为了解决 bug-110730
该问题在插件中修复见 Change-Id:If7cba6
Bug: https://pms.uniontech.com/zentao/bug-view-112210.html
Influence: dcc-backup-filedialog-crashed
Log: 备份还原文件选择崩溃问题
Change-Id: Idc73a66fd72a8e10bbbb4e9dfd0e20242e2f1a54
2022-01-25 15:18:36 +08:00
ck
f37840028f
fix: max button icon error on wayland
...
on wayland maximized window windowstate is WindowMaximized | WindowActive
should use testFlag or isMaximized
Bug: https://pms.uniontech.com/zentao/bug-view-112159.html
Influence: wayland-dtitlebar-maxbtn
Log:
Change-Id: I32e566bc41523df4bd114e0e0907191f3440d09b
2022-01-24 15:14:24 +08:00
ck
852a032f3a
fix: 特效开关时DArrowRectangle圆角未及时更新
...
响应特效变化型号更新path
Log:
Influence: DArrowRectangle 圆角
Bug: https://pms.uniontech.com/zentao/bug-view-110554.html
Change-Id: I5b8446d73bb379fd378208270cea8f7310d43778
2022-01-24 09:50:42 +08:00
AlexOne
045f620afb
fix: DDialog 对话框中的按钮按下位置偏移
...
DDialog 对话框中的按钮按下位置偏移,按不到对应的按钮
按理说 Dialog 是不需要设置默认位置的,所以不对 Dialog 做处理
这里对 dtk 的 dialog 进行标记,在插件里面区分处理
Log:
Bug: https://pms.uniontech.com/zentao/bug-view-103858.html
Influence: 所有使用Dialog的应用程序
Change-Id: I86a8e3d1ff7da2b69588a04c2870f62e0ede2d33
2022-01-18 18:05:24 +08:00
wang fei
cede243cee
fix: 窗口分屏菜单样式未统一
...
dark主题最大化和还原的图标用反了
Log: 修复窗口分屏菜单样式未统一的问题
Bug: https://pms.uniontech.com/zentao/bug-view-110577.html
Influence: 分屏菜单样式
Change-Id: I4fbd2669df1d940205c47dd5098b93427fb61bd7
2022-01-18 15:44:02 +08:00
wang fei
b80ce5e2e6
fix: 安全中心设置界面显示与UI不符
...
新加的widget设置其布局的spacing和margin为0
Log: 修复安全中心设置界面显示与UI不符的问题
Bug: https://pms.uniontech.com/zentao/bug-view-111107.html
Influence: 设置界面UI
Change-Id: Ia4d6b0badbcf5a1528ef5f3c5ff561c9cfaa63a3
2022-01-14 16:44:15 +08:00
AlexOne
02d7e5cc5d
fix: 文件选择对话框随机崩溃的问题
...
uos-activator 文件选择对话框随机崩溃
Log:
Bug: https://pms.uniontech.com/zentao/bug-view-110730.html
Influence: 文件选择对话框的正常使用
Change-Id: I06f284b9aeb848ac712af618fec1de074e9ba95b
2022-01-14 10:49:44 +08:00
wang fei
4d19caf28c
fix: 窗口分屏菜单样式未统一
...
最大化和还原的图标用反了
Log: 修复窗口分屏菜单样式未统一的问题
Bug: https://pms.uniontech.com/zentao/bug-view-110577.html
Influence: 分屏菜单样式
Change-Id: Ie7ddf9db510f223dabe139612d407d95616ea1d6
2022-01-11 13:39:58 +08:00
wang fei
c8bcde4836
feat: 窗口标题栏菜单feedback Action的翻译
...
增加feedback action的翻译
Log: 增加标题栏菜单feedback Action的翻译
Influence: 标题栏菜单Action的翻译
Change-Id: I77d41131eb7ec9083e96d7bffefc439b6daf4b4d
2022-01-10 14:31:04 +08:00
justforlxz
6627d89217
feat: add feedback menu in titlebar menu
...
only deepin application can show this menu
Log: 为 deepin 应用添加反馈按钮
Influence: 社区版环境所有 dtk 窗口的标题栏菜单
Change-Id: I653f4263eaa77a485190d410f5e2155cc2b197da
2022-01-10 11:47:33 +08:00
wang fei
f7ad608ec0
fix: 控制中心搜索框无内容时右击复制和剪贴菜单高亮
...
复制和剪切enable为false时,弹出菜单disabled;
复制和剪切为true时,不去主动enable,看是否有文字内容选中。
Log: 修复控制中心搜索框无内容时右击复制和剪贴菜单高亮的问题
Bug: https://pms.uniontech.com/zentao/bug-view-109634.html
Influence: DLineEdit右键菜单显示
Change-Id: Ia5fd37ab60e6ef1c75e4a3c044438972d61121cd
2021-12-31 17:47:27 +08:00
wang fei
6b06553d80
fix: dsetting的UI没对齐的问题
...
在label外面包层widget,label右边放个strech
Log: 修复dsetting的UI没对齐的问题
Bug: https://pms.uniontech.com/zentao/bug-view-108673.html
Influence: DSettingsDialog UI显示
Change-Id: If1a63ed6dd0fe4b90abf275f927d45e2aaf7851e
2021-12-31 14:01:15 +08:00
ck
f5e745bdf9
fix: dialog show again with focus rect on closebtn
...
QDialog::setVisible will send QEvent::FocusIn with Qt::TabFocusReason
that will cause DTitlebar focus to next widget(see DTitlebar::event)
Bug: https://pms.uniontech.com/zentao/bug-view-109838.html
Log:
Influence: dialog focus rect
Change-Id: Ibbe522b06567ecc8135b42a138e14d5771b6f647
2021-12-28 16:58:35 +08:00
ck
d65d5824d4
fix: dsettingsdialog spinbutton default not work
...
the spinbox default range is 0-99. if value not in the range was set b4
setMaximum/setMinimum called will not work. e.g. default=1000
Log:
Influence: dsettingsdialog spinbutton
Change-Id: I11216686beb256b98a32046c40a2d58c535cd35b
2021-12-21 14:24:01 +08:00
Wang Fei
cf7d8e0348
fix: tooltips不跟随DLineEdit同步滚动
...
顶层窗口滚动触发HoverMove事件后,
更新tooltips的位置updateTooltipPos。
DLineEdit隐藏,tooltips也跟着隐藏。
Log: 修复tooltips不跟随DLineEdit同步滚动的问题
Bug: https://pms.uniontech.com/zentao/bug-view-107662.html
Influence: DLineEdit的tooltips正常显示
Change-Id: Ib5b34a61f942af93c4d4ecb2d1384368655c4e19
2021-12-17 14:35:35 +08:00
AlexOne
3aee2ffdda
fix: Combobox 调整字体后有多余的空白
...
Combobox 调整字体后有多余的空白
不超过 maxVisibleItems 项的时候使用Qt原有的接口,大于 maxVisibleItems
的时候再使用重新实现的内容来显示 Combobox
Log:
Bug: https://pms.uniontech.com/zentao/bug-view-107861.html
Influence: 所有用到Combobox的地方
Change-Id: Ie600a6a10d850344bbf03362fa1412b53172f799
2021-12-17 09:50:24 +08:00