Commit Graph

1780 Commits

Author SHA1 Message Date
wangfei dcb6217d4b fix: adjust floatbutton's size in compact mode
In compact mode, add the margins to sizehint.

Log: modify floatbutton's content size to 36*36
Issue: https://github.com/linuxdeepin/dtk/issues/36
2023-05-05 11:13:02 +08:00
wangfei 85a476724d chore: update translation files
delete some deprecate words.
add some words about custom toolbar.

Log: update translation files
2023-05-05 11:12:11 +08:00
wangfei 0f0f79f6ca fix: the redundant field "version" has been added
remove the redundant field "version: " in about dialog

Issue: https://github.com/linuxdeepin/dtk/issues/62
2023-04-26 13:40:14 +08:00
bluesky f0323b6608 fix: titlebar was not updated when titlebarHeight was changed
修复titlebarHeight属性被修改时,标题栏没有实时生效。

Issue: https://github.com/linuxdeepin/dtk/issues/51
2023-04-26 13:14:50 +08:00
donghualin 2f8df6c939 fix: 修复ArrowRectanble设置位置错误
当给ArrowRectanble设置parent的时候,调用show方法没有计算顶层窗口的位置导致最终计算的窗口错误

Log: 修复锁屏界面竖屏无法显示网络列表
Influence: 登陆界面和锁屏界面的网络列表
Bug: https://pms.uniontech.com/bug-view-195913.html
2023-04-24 14:50:18 +08:00
YeShanShan 7692c1572e feat: Deprecate DApplicationSettings
The feature has been moved to DGuiApplicationHelper in the
commit 19492cbfb71954a4939028b37ce66981d34e324e
2023-04-24 13:58:34 +08:00
bluesky 0354aa60f1 doc: update DSwitchButton docs
更新DSwitchButton控件的文档

Log: update docs
2023-04-21 10:30:49 +08:00
wangfei 359121fea6 chore: init option by baseStyleOption() in diconbutton
init option by virtual function baseStyleOption() in diconbutton

Log: init option by baseStyleOption() in diconbutton
2023-04-20 16:31:31 +08:00
wangfei 47c5b4576f Revert "fix: icon size is abnormal when dpi > 1"
This reverts commit de8d8f9920.
2023-04-20 16:30:09 +08:00
wangyixue 287fd228c5 fix: DMPRISControl style conflicts with design
* Icon is too small compared to design, replace the icon with new
icon that is 36x36 and fix the button size (52x52) and icon size.
* Spacing between media control buttons is smaller than design. Set
fixed spacing in control buttons layout (Default is 80px).
* Add DMPRISControl example in collections.

Log: fix DMPRISControl style conflicts with design
2023-04-18 10:10:56 +08:00
YeShanShan 34ecd23d86 fix: DFloatingButton can't display dciicon
Option's `features` is overridden.
2023-04-17 15:45:58 +08:00
YeShanShan 1f516707cf fix: TextAction doesn't display in center
We calculate text rect including origin text and action text
in AliginVCenter layout, and then paint it.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/408
2023-04-13 15:54:08 +08:00
YeShanShan acaeb90360 fix: Modify ButtonMargin from 10 to 8
According to designer.
  It results display error for dde-control-center's shutcut keys
for `10`, so we change it back.

Issue: https://github.com/linuxdeepin/dtkwidget/pull/373
2023-04-13 15:53:48 +08:00
wangfei b1954f2ec2 Fix: Qt::ToolButtonTextUnderIcon does't work
set a fixed layout mode Qt::ToolButtonTextBesideIcon in codebase

Log: delete fixed layout Qt::ToolButtonTextBesideIcon
Issue: https://github.com/linuxdeepin/dtkwidget/issues/403
2023-04-12 16:49:49 +08:00
YeShanShan dbf50f00c5 fix: ListView's widget switching hide and show frequently
It's apparent when we set a widget for DStandardItem, and
hovering it, it look obvious when changing Widget's cursor.
  We hide widget depending on the different of last and current
frame, When we hover one item, Viewport also to be repaint,
and it's area is an item hovered, this caused we made a
calculation error.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/364
2023-04-11 09:14:35 +08:00
wangfei de8d8f9920 fix: icon size is abnormal when dpi > 1
ButtonIconSize does't multiply ratio in dstyle, which lead to
both pixmap size and rect size disagree.

Log: modify ButtonIconSize's default value
Issue: https://github.com/linuxdeepin/dtkwidget/issues/390
2023-04-07 10:09:02 +08:00
YeShanShan d9e2e16cd6 fix: Build error for Qt 5.15~6.1
PM_LineEditIconSize is introduced in qt6.2 or patch,
the iconSize is always 20 in NormalMode or CompactMode.
Building error is introduced in 'ec55b744d6ae766911d01948c56eac8b18fc5289'

Log:
2023-04-04 13:32:27 +08:00
wangfei 091b978048 fix: SwitchButtonHandle isn't expanded when switchbutton is expanded
set the handle's width to half of switchbutton's width;
set the handle's height to switchbutton's height.

Log: modify the handle's size in switchbutton
Issue: https://github.com/linuxdeepin/dtkwidget/issues/389
2023-04-04 09:54:11 +08:00
ssk-wh 92573ab37e feat: 增加覆盖指定界面的水印类DWaterMarkHelper
可通过DWaterMarkHelper的接口设置水印样式,并通过registerWidget添加水印

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-243575.html
Change-Id: I84cf4d3fb0eb17deb0ab9c2e7b154bf884167a0b
2023-04-03 10:10:47 +08:00
YeShanShan ec55b744d6 fix: Modify SearchEdit's icon
`search_indicator` and `search_action`'s size is 36 * 36, and
they have more than white space, now we update those icon in
dtkgui and qt5integration, and remove unnecessary avoidance.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
Log: It depends dtkgui and qt5integration.
2023-04-03 10:07:25 +08:00
bluesky 1e6cb03ba8 fix: update updateTitlebarHeight
修改updateTitlebarHeight函数,取消titlebarHeight等于50的判断,配置文件默认值为-1

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 09:09:19 +00:00
wang fei 2db46873a9 fix: adjust daboutdialog's ui
adjust the ui of daboutdialog

Log: adjust daboutdialog's ui
Issue: https://github.com/linuxdeepin/dtkwidget/issues/361
Influence: daboutdialog
2023-03-28 10:54:49 +08:00
bluesky 3d9e9f91a8 feat: add the ability to configure the default height of the DTitleBar
新增通过DConfig配置DTitleBar的功能

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 02:20:05 +00:00
wang fei d0222e84fc fix: modify listview for compact mode
In compact mode:
modify margins to margin(10, 6, 10, 6)
modify icon size to QSize(24, 24)

Log: modify listview in compact mode
Issue: https://github.com/linuxdeepin/dtkwidget/issues/324
Influence: compact mode
2023-03-24 11:14:54 +08:00
jiawen 3dd052196f doc: update docs
更新dwindowoption docs

Log: update docs

Task: linuxdeepin/dtkwidget/issues/360
2023-03-18 08:54:33 +00:00
YeShanShan accac81a38 fix: Adjust icon size for subclass of lineedit
DLineEditPrivate provides a default size for subclass.
2023-03-17 14:46:48 +08:00
YeShanShan 2712141845 fix: Modify edit widgets to adapt CompactMode
Adjust the interval between widget to 10 for edit.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
2023-03-17 14:46:48 +08:00
YeShanShan 03f6b462a8 fix: Adjust SwitchButtonhandler's width in CompactMode
SwitchButtonhandlerWidth is different,
  It's SwitchButtonGroove's width is 40 in CompactMode, and 50 in NormalMode,
It's just by 5 / 3 * PM_SwitchButtonHandleWidth.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-17 14:46:21 +08:00
YeShanShan 0e725e4097 fix: Modify PushButton to adapt CompactMode
Use `ButtonMargin` as Arrow's margin with frame, and changes it
from 8 to 10.
  Modify Indicator in CompactMode.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:46:58 +08:00
Ye ShanShan 3887d00daf fix: Modify size style for toolbar
Adjust toolbar iconsize from 24 to 16.
  Add example for toolbutton.

Log: 依赖qt5integration升级
Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:37:01 +08:00
wang fei 44aea4b9ad chore: remove log about sidebar
remove userless log obout sidebar

Log: remove log about sidebar
Influence: none
2023-03-16 05:36:56 +00:00
ck 46ac16a586 fix: DAbstractDialog translucent background
if windowmanager not support blur window effect
do not set `Qt::WA_TranslucentBackground` attribute
setblurEnabled will not work

Issue: https://github.com/linuxdeepin/dtkwidget/issues/358
Log: fix Dialog translucent background
2023-03-15 14:10:11 +08:00
wang fei c447104da1 fix: add color-only mode in dprintpreviewdialog
add support for color-only mode to dprintpreviewdialog

Log: add color-only mode in dprintpreviewdialog
Issue: https://github.com/linuxdeepin/dtkwidget/issues/354
Influence: print preview
2023-03-13 05:27:25 +00:00
wang fei 9d03dc792a chore: Remove redundant code about acknowledgement in daboutdialog
1. add obsolete interfaces about acknowledgement
2. remove redundant code about acknowledgement

Log: remove redundant code about acknowledgement in daboutdialog
2023-03-13 09:45:52 +08:00
renbin cbd8237ed9 chore: DPrintPreviewDialog add update setting interface.
Add interface updateDialogSettingInfo, apps can update print dialog
settings at construction time.
Add docs and UT, fix a bug that may cause a memory leak.

Log: DPrintPreviewDialog add update setting interface.
Influence: Add update setting interface.
2023-03-10 09:27:36 +00:00
bluesky 70d7427547 docs: update docs
更新dboxwidget的文档

Log:
2023-03-09 11:08:28 +08:00
bluesky 6f05486d53 docs: update docs for dfilechooseredit
更新dfilechooseredit的文档

Log:
2023-03-05 22:07:31 +08:00
wang fei 1b0a29a457 chore: modify the result code of dprintpreviewdialog to accept or reject
give the explicit result code (accept or reject) when pressing print button
or cancel button of dprintpreviewdialog.

Log: modify the result code of dprintpreviewdialog to accept or reject
Influence: dprintpreviewdialog
Change-Id: Ic6ee36b7fc805ed16762bc203001d1248211fb1e
2023-03-02 05:03:49 +00:00
张坤 b97bff4d6d doc: update docs
更新dlineedit和dspinner的文档

Log: update docs
2023-02-23 01:43:53 +00:00
Ye ShanShan e8338437eb fix: DStyleOptionButton's incompatible
This is a supplement for 9b6e608005
It's default assignment constructor will call buillt
dtkwidget's  `dciIcon` conftructor, but `dciIcon` object is a
unassignment space, it causes app crashed.
2023-02-22 14:07:43 +08:00
wang fei bd8c3e1042 chore: rename sidebarVisble to sidebarVisible
obsolete old interface sidebarVisible due to spelling mistake

Log: rename sidebarVisble to sidebarVisible
Influence: sidebar
Change-Id: I7c932f4fc8f43db2271d3562d446b4f663e11ad4
2023-02-17 01:56:39 +00:00
wang fei a937685fd1 fix: background widget is always shown when sidebar is hidden
change background widget's visibility when the signal of expandChanged is emitted

Log: resolve the issue that background widget is always shown when sidebar is hidden
Influence: sidebar
Change-Id: I0a2fc73614aecfb736f52f00cb6ca07459f48fb7
2023-02-16 06:09:52 +00:00
Ye ShanShan 9b6e608005 fix: DStyleOptionButton's incompatible
It was introduced in e4fdfe5b36 .
  It cause incompatible that DStyleOptionButton add a member
variable `dciIcon`.
  App is crashed if libdtkwidget5 is different between App built
and running loaded, (app builds with 5.5, but loads 5.6 version).
  We shouldn't add member variable that defined in .h and which
breaks abi.
  If this case has exist, we can Use DApplication::builtDtkVersion()
to avoid to accessing the member in some lower version.
  We are lucky, because we have `features` to avoid to accessing
`dciIcon` member in lower version.
  FloatingButton doesn't need add DciIcon to features, because
DDciIcon has execute this code.

Log: none
Influence: App crash in some case
Change-Id: Iff4d596c6f90fa82f0d93ec9db0118d8d0bffa40
2023-02-14 13:32:36 +08:00
Ye ShanShan 3b880ba698 fix: Lossing LIBDTKWIDGTE_LIBRARY macro
It lossed when qmake to cmake, and it causes DApplication::
buildDtkVersion function is error, because it's value is assigned
when builing application.

Log: none
Influence: none
Change-Id: Ie636df17c485f7d43cd5458cf3a2f2627388a07a
2023-02-14 10:51:27 +08:00
wang fei f92823736a fix: the entrance of feature display is visible when no item is added
when no feature item is added, hide the entrance in about daboutdialog

Log: fix the issue about feature dialog has no content
Influence: feature display
Change-Id: Id13ce0b84ede3d084f219cfbd35e1d2a94e3b4bc
2023-02-10 17:11:21 +08:00
wang fei 92a7561e0f fix: 二次调起特性对话框崩溃
原因:特性对话框的父窗口是关于对话框时,
      随着关于对话框销毁,再次访问特性对话框对象就会崩溃。
修改:1.特性对话框不设置父窗口,随着应用退出销毁。
      2.特性对话框展示时,调整位置。

Log: 修复二次调起特性对话框崩溃问题
Influence: 特性对话框
Change-Id: I56671745ae6fb087133c34fcd50f54d4b9789e81
2023-02-07 14:34:45 +00:00
bluesky 9e4b4a89ba doc: update docs for danchors
更新danchors的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-02-03 07:17:36 +00:00
xzl d2cb0fb1f8 docs: update the document of DFloatingButton
更新文档

Log: docs: update the document of DFloatingButton
2023-01-19 14:01:47 +08:00
xzl e734edc54b docs: update docs
更新文档

log: update docs
2023-01-18 17:21:31 +08:00
wang fei a3967280f8 fix: 增加titlebarSettingsImpl空指针判断
新建dtitlebar对象,未调用settings(),titlebarSettingsImpl是空的

Log: 增加titlebarSettingsImpl空指针判断
Influence: titlebar
Change-Id: I6f330f59556b86b34e94c8cb8997556c7bb59e8e
2023-01-18 05:21:38 +00:00