Commit Graph

2493 Commits

Author SHA1 Message Date
xzl 6493c89d4f docs: update example
更新示例代码和图片

Log:
2022-12-08 17:25:03 +08:00
renbin 30225aa55c feat: Add DImageViewer crop image function.
Add DImageViewer crop image function, DGraphicsCropItem class.
Add crop image unit test cases, update dox file comments.

Log: Add DImageViewer crop image function.
2022-12-08 14:08:41 +08:00
QinBenxue aa98fbffed docs: update docs
更新文档

Log:
2022-12-08 03:39:06 +00:00
QinBenxue 9179e0f40b docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue c41b2d78a4 docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue 693f55bd44 docs: update docs
Log: 更新文档
2022-12-07 15:06:15 +08:00
wangyixue b28cb777de fix: crumbs get out of border in DCrumbEdit
Some crumbs will get out of panel frame border of DCrumbEdit when it's
too long or there are too many crumbs showing in a vertical line (often
happens when scrolling).
Draw border first and then draw viewport, set viewport margins.

Bug: https://pms.uniontech.com/bug-view-174437.html
Log: fix crumbs out of border
Influence: DCrumbEdit
2022-12-07 10:34:39 +08:00
wangyixue d27630f171 chore: fix linking error
Fix DtkWidget_LIBRARIES to find_library installed.

Log: fix linking error
2022-12-07 10:02:15 +08:00
wang fei e60b44d898 feat: 侧边栏功能
按钮控制侧边栏展开和收缩

Log: 添加侧边栏功能
Influence: 侧边栏和标题栏
Change-Id: I39790200db1606a6513a99a47ecaab17c2f171ee
2022-12-07 09:59:56 +08:00
student-ice 95cd82ab6c docs: add docs for widgets
给darrowlineexpand添加文档注释 #242

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-06 10:58:05 +08:00
student-ice b7da54204f docs: add docs for widgets
给darrowlinedrawer添加文档注释#240

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-05 05:35:13 -06:00
student-ice 650edaaa94 docs: add docs for widgets
给dlabel添加文档注释#237

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-02 01:16:38 -06:00
renbin b96acedda2 feat: Implements DImageViewer rotate, scale and gesture.
Implements the DImageViewer interface, including rotate, scale, gesture.
Add unit test cases and interface comment.

Log: Implements DImageViewer rotate, scale and gesture.
2022-12-02 05:43:40 +00:00
renbin a880020d62 feat: Implements DImageViewer set image and clear.
Implements the DImageViewer interface, including set image and clear.
And implements the DGraphicsitem classes, add unit test cases, update comment.

Log: Implements DImageViewer set image and clear.
2022-12-02 05:43:40 +00:00
ck f316b7250b fix: revert and fix option button icon invisible
This reverts commit 907f56b554.
icons.qrc can not delete : undefined symbol: _Z20qInitResources_iconsv
mv dci file from icons.qrc to dtk-icon-theme.qrc

Log: undefined symbol
Bug: https://pms.uniontech.com/bug-view-174963.html
Influence: symbol
2022-12-01 18:26:34 +08:00
student-ice e1f01e538b docs: add docs for widgets
给darrowbutton添加文档注释 #232

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-01 03:39:50 -06:00
ck 907f56b554 fix: option button icon invisible
同名 qrc 资源文件被覆盖导致无法找到图标
注意:dtk 提供的 qrc 文件需要加上 dtk 前缀

Log: 修复图标无法显示的问题
Influence: 部分应用图标无法显示的问题
Bug: https://pms.uniontech.com/bug-view-174963.html
2022-12-01 17:03:03 +08:00
xzl 319a0e2218 chore: add ISSUE_TEMPLATE
添加issue模板

Log:
2022-11-30 23:39:38 -06:00
xzl 67a3738ce1 fix: fix document format
修复文档格式

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-01 10:58:39 +08:00
xzl b53e2e3c51 docs: update dalertcontrol document
添加dalertcontrol文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 03:44:38 -06:00
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