Commit Graph

2630 Commits

Author SHA1 Message Date
heyuming 637e3eb52a feat(lib): support Qt6
Log:适配Qt6
2023-06-19 13:15:20 +08:00
heyuming 060450076f feat(build): support Qt6
Log: 支持Qt6
2023-06-16 17:32:43 +08:00
ck 428675ebb8 fix: TextEdit color group not update
control's palette not changed whene window activate changed

Bug: https://pms.uniontech.com/bug-view-196603.html
2023-06-16 16:15:19 +08:00
heyuming 2382ebaba2 fix: DApplication casting error
Log: 修复DApplication的转换错误
2023-06-14 10:09:43 +08:00
wangfei 77956103b0 chore: update translations abouut license
update translations about license

Log: update translations about license
2023-06-08 11:03:28 +08:00
ck 7532e97c1d fix: abnormal font size
if qApp->font() dpi is invalid(<=0) fallback to d_defaultDpi
see qt_defaultDpiX / qt_defaultDpiY(qfont.cpp)

Issue: https://github.com/linuxdeepin/dtk/issues/17
2023-05-30 16:45:27 +08:00
caixiangrong 24f758e5db fix: 修改分屏菜单位置错误
只Qt::Widget的窗口并有父窗口的计算使用父窗口rect

Log: 修改分屏菜单位置错误
Bug: https://pms.uniontech.com/bug-view-199083.html
Influence: 锁屏界面/任务栏等网络插件窗口显示,窗口分屏提示窗口
2023-05-30 16:39:17 +08:00
wangfei 21eafa9b28 chore: Change the text of the title in dlicensedialog
Change "open-source software" to "Open-Source Software"

Log: Change the text of the title in dlicensedialog
2023-05-18 15:52:35 +08:00
wangfei bb7bb1db80 chore: Add properties about license in dapplication interface
add properties about license feature in dapplication interface.

Log: Add properties about license
2023-05-17 16:42:01 +08:00
wangfei a5b2f57b18 chore: change the text of the title on licensedialog
change the text "Credits" to "open-source software"

Log: change the text of the title on licensedialog
2023-05-17 16:40:07 +08:00
ck 25a9e60c09 chore: bump version to 5.6.12
update changelog
2023-05-15 11:42:41 +08:00
wangfei cf93158b9e chore: change the licenses of example
change the licenses of the example

Log: change the licences of the example
2023-05-12 17:36:45 +08:00
wangfei d152e0aa78 fix(licensedialog): it does't work by clicking enter action
connect two signals between enter action and listview on license dialog.

Log: fix the issue that it doesn't work by clicking enter action
2023-05-12 17:33:33 +08:00
wangfei c3a0ef938c chore: update translations about license feature
add translations about license feature

Log: update translations about license feature
2023-05-11 13:17:01 +08:00
deepin-admin-bot 30992ff1b0 chore: Sync by 2e5e092ba3
sync by github workflow

Log: none
Influence: none
2023-05-10 02:24:49 +00:00
wangfei f585d1f9df feat: add license dialog widget
add dlicensedialog interface and function.

Log: add license dialog widget
2023-05-10 09:07:01 +08:00
ck 42612a2fd1 chore: use activatableServiceNames
Use the activatableServiceNames instead of isServiceRegistered
to detect new version dbus interfaces exists
2023-05-09 14:46:59 +08:00
ck eb2fff404f chore: bump version to 5.6.11
update changelog
2023-05-08 15:07:20 +08:00
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
rewine 802ed1d930 fix: must set CMAKE_INSTALL_PREFIX before GNUInstallDirs
Log:
Never modify the value of CMAKE_INSTALL_PREFIX after including GNUInstallDirs
Otherwise incorrect CMAKE_INSTALL_FULL_XXXX values will be computed
2023-04-28 07:39:52 +00: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
Felix Yan 45c20d90e5 fix: suppress cmake warning for missing directory specified
Fixes the following warning:

```
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.
```
2023-04-21 13:22:03 +08:00
Felix Yan 29cdb8b79f fix: remove unused librsvg dependency from dtkwidget.spec
It's no longer in use.
2023-04-21 13:21: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 89a20b8120 feat: add DMPRISControl example
Add example in collections for DMPRISControl widget.
2023-04-18 10:10:56 +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
ck 1521966be9 chore: update to 5.6.10
Log: update changelog
2023-04-17 18:03:29 +08:00
Felix Yan 2efad74dcd fix: don't set CMAKE_BUILD_TYPE in CMakeLists.txt
Distributions actually prefer CMAKE_BUILD_TYPE being `None` (the default value) so that their CFLAGS/LDFLAGS are used instead of the cmake presets. Let's do not overwrite it with "Release".
2023-04-17 17:56:00 +08:00
Felix Yan dd2e38e77c fix: remove unused cmake option from PKGBUILD
`HUNTER_ENABLED` isn't mentioned elsewhere in this project.
2023-04-17 17:32:32 +08:00
Felix Yan 0a9216852a fix: remove unused librsvg dependency from PKGBUILD
It's not mentioned anymore in this project.
2023-04-17 17:29:16 +08:00
YeShanShan 34ecd23d86 fix: DFloatingButton can't display dciicon
Option's `features` is overridden.
2023-04-17 15:45:58 +08:00
deepin-admin-bot 099a440836 chore: Sync by 2dd22560f7
sync by github workflow

Log: none
Influence: none
2023-04-14 08:42:25 +00:00
deepin-admin-bot 4c4f49199b chore: Sync by c5d10d3aeb
sync by github workflow

Log: none
Influence: none
2023-04-14 08:32:43 +00: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
ck 9c56701109 chore: update to 5.6.9
Log: update changelog
2023-04-03 10:28:26 +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
tsic404 3447fb3c8b chore(CI): add OBS workflows
add OBS workflows and modify PKGBUILD support OBS build

log:
2023-03-29 09:40:37 +08:00