Commit Graph

2473 Commits

Author SHA1 Message Date
xzl 4df9612c9f docs: update dabstractdialog docs
更新dabstractdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 00:45:10 -06:00
ck a0483c9fb3 chore: update changelog
5.6.2.2

Log: none
Influence: none
2022-11-30 12:13:19 +08:00
LinXuan 3b7903f11c docs: update daboutdialog document
更新daboutdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-29 17:05:53 +08:00
LinXuan f172bd324c docs: add doxygen theme
add doxygen theme

Log:
2022-11-28 16:39:42 +08:00
deepin-admin-bot 9bab976eed chore: Sync by 3de30af6dc
sync by github workflow

Log: none
Influence: none
2022-11-24 08:56:37 +00:00
Ye ShanShan 0f0530628b fix: Remove ASan check for debug
Removing asan check

Log: 移除库的asan检测
Influence: none
Change-Id: If37bca2925c43ff87701fe58f1136dab66cce2a8
2022-11-24 13:53:30 +08:00
Ye ShanShan 3e76148cd5 fix: DStyleItemDelegate filter ListView's event
QStyledItemDelagate::eventFilter can filter the object's Tab
key event, here We only need a Paint Event to post
UpdateWidgetVisibleEvent, and updateWidgetVisible, so we remove
the eventFilter of AbstractItemView

Log: DStyleItemDelegate拦截了QListView的部分事件,导致listview的Tab
事件和焦点异常
Bug: https://pms.uniontech.com/bug-view-164547.html
Influence: 使用了DListView的应用,其listview的tab键,焦点事件可能
异常,

Change-Id: I1d4d8c836b5c6b27e021a5d632b969daf3f5b348
2022-11-23 09:32:04 +08:00
renbin 347724293d feat: Change DImageViewer widget and image handler.
DImageViewer just show images, the image file handler will be moved to DtkGui.

Log: Change DImageViewer widget and image handler.
2022-11-22 09:45:15 +00:00
renbin 8cc5dee635 docs: Remove dox file licence comment.
Remove dox file license comment.

Log: Remove dox file license comment.
2022-11-22 09:45:15 +00:00
renbin 9dde038f09 feat: Add DImageViewer interface and interface documents.
Add DImageViewer interface and interface documents.

Log: Add DImageViewer interface and interface documents.
2022-11-22 09:45:15 +00:00
wang fei db8a17e3a9 fix: 打印文件设置纸张大小不生效
原因:匹配的是key字段,实际combobox内容是name字段
修改: 将匹配的key字段修改成name字段

Log: 修复打印文件设置纸张大小不生效
Bug: https://pms.uniontech.com/bug-view-171767.html
Influence: 打印纸张大小
Change-Id: I557072ca5592059031a71c4bbb4bb8e1ecabe154
2022-11-21 15:05:02 +08:00
deepin-admin-bot b54921846c chore: Sync by 6aa579e31c
sync by github workflow

Log: none
Influence: none
2022-11-18 02:14:59 +00:00
deepin-admin-bot b2c0a594cb chore: Sync by 50ad27fb2a
sync by github workflow

Log: none
Influence: none
2022-11-16 03:44:59 +00:00
Ye ShanShan e433e2204a fix: DTitleBar exists incompatible modify
old dtkwidget assume menu is not empty, but now it's not, and
we revert this code.
  Moving addDefaultMenuItems from `showMenu` to `showEvent`,
because some applications get menuItems and assert they are not
empty before  `showMenu`.
  delay to check UserManual avoid to request dbus in `showEvent`.

Log: 升级后DTitleBar提供的menu可能没有默认菜单项,导致部分应用异常,改回
原来版本的逻辑
Bug: https://pms.uniontech.com/bug-view-170639.html
Influence: 升级dtkwidget导致包管理器使用安装功能时崩溃

Change-Id: Ifae616c8ba5af3a2e28b1dbb00009e0a2872a989
2022-11-14 10:55:12 +08:00
deepin-admin-bot c411b7a040 chore: Sync by d15debb9d3
sync by github workflow

Log: none
Influence: none
2022-11-11 06:54:50 +00:00
wang fei 29c92d0818 fix: 维语环境下打印设置界面标题没有对整齐
1.修改label的水平宽度的策略为QSizePolicy::Maximum
2.布局中间加个弹簧

Log: 修复维语环境下打印设置界面标题没有对整齐问题
Bug: https://pms.uniontech.com/bug-view-163971.html
Influence: 打印设置-维语
Change-Id: I48bbe47544112267a1e8f8284db508af05f5e48f
2022-11-03 17:12:22 +08:00
Ye ShanShan 04e770f502 feat: Using loadTranslator of dtkgui
moving implement of loadTranslator to dtkgui.

Log: 加载翻译功能移至dtkgui,以便供dtkdeclarative使用
Bug: https://pms.uniontech.com/bug-view-157977.html
Influence: qml相关应用没有加载翻译
Change-Id: Ic31ea60854c0685add5617f795aea061e8a20e3b
2022-11-03 13:49:07 +08:00
wang fei f7f933f247 fix: 搜索框文字没有居中
搜索框文字偏左12px

Log: 修复搜索框文字没有居中问题
Bug: https://pms.uniontech.com/bug-view-167567.html
Influence: 搜索框
Change-Id: I8ca4b6eb019da4fbe93ddcb7a612242c6403cd77
2022-11-03 10:10:42 +08:00
wingsummer 0a4903ea26 doc: README
add projects from wing-summer

Log: add more projects to readme
2022-10-24 15:15:53 +08:00
chenhongtao 73f55c5e08 doc: README
add projects who use dtkwidget

Log: README
2022-10-21 10:01:42 +00:00
wang fei c20d9b3ef8 fix: 打印预览页面打开“添加水印”开关后再关闭,水印开关消失
原因:根据对象名字关闭控件,开关和下面功能控件一个对象名。
解决:增加一个对象名字控制下面的功能控件。

Log: 修复打印预览页面打开“添加水印”开关后再关闭,水印开关消失问题
Bug: https://pms.uniontech.com/bug-view-163737.html
Influence: 水印
Change-Id: I5b0f10347b668987cadf7b2542fbea8ea8b8b437
2022-10-20 09:38:11 +08:00
deepin-admin-bot b68c102bb4 chore: Sync by 6fbf8e00b9
sync by github workflow

Log: none
Influence: none
2022-10-14 05:25:11 +00:00
chenhongtao bb7e5fdc05 fix: fix: qcommandlinkbutton缩放后图标模糊
QCommandLinkButton在qt源码中进行了一次pixmap变换,这导致前端拿不到位图
这里将QCommandLinkButton 的icon直接返回了QIcon theme,避免了pixmap的变换

Log: qcommandlinkbutton 的高分屏模糊bug
Influence: qcommandlinkbutton
2022-10-14 10:51:40 +08:00
wang fei 01aae7443a fix: 打印预览页面范围输入框调整
当页面范围是All或Current Page, 隐藏输入框;
当页面范围是Select Pages, 显示输入框。

Log: 调整打印预览页面范围输入框
Bug:https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览-页面范围输入框
Change-Id: Ic33c920a7f279ddeaf3d6703a42918892b706f12

Change-Id: I2c69967cc34c29c6e0cd42e9c10e61380e9516a8
2022-10-10 03:36:04 +00:00
wang fei 69d57db724 fix: 打印预览水印项的圆角和其他项的不一致
原因:DBackgroundGroup的layout未设置margin为0,
      DBackgroundGroup的默认itemMargin为9,
      影响其圆角大小。
修改:设置DBackgroundGroup的layout的margin为0,在其子widget里设置margin。

Log: 修复打印预览水印项的圆角和其他项的不一致问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 打印预览水印项UI
Change-Id: I88497151148d1f2c9e19e3192661275528bb5be0
2022-10-10 03:26:36 +00:00
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