Commit Graph

539 Commits

Author SHA1 Message Date
chenhongtao 09de488645 fix(coverage): add the option of compiler to generage gcda files
A mistake, the compile option is forgetton

Log: add compiler options to generage gcda files
2022-09-05 09:04:13 +00:00
chenhongtao 9dbff1eb87 fix(shell): fix recoveryshell to cmake
Now the configure file is cmake , then the shell should be cmake too

Log: fix recoveryshell
2022-09-02 08:28:53 +00:00
chenhongtao adb29f1dff fix: wrong option() usage in CMakeLists.txt
修复错误的 option() 用法

Log: wrong option usage
2022-09-02 15:06:28 +08:00
Chen Bin c20933e29c fix: Abnormal Dci Icon on high resolution screen
The AA_UseHighDpiPixmaps attribute is used to control the icon
blurring problem of the high-resolution screen. However, we do
not use this attribute, but expand the standard size of the icon
by default. This is unreasonable. Therefore, we modified the way
to enlarge the icon size to use AA_ After the usehighdpipixmaps
attribute, the icon blurring problem of the high-resolution screen
is solved.

Log:
Bug: https://pms.uniontech.com/bug-view-150309.html
Change-Id: Ie7d476cdec6c2ddea0a6432bc4a8a7d26aab5cac
2022-09-02 14:19:42 +08:00
chenhongtao 750478f24e feat(doc): add package libdtkgui-doc
build the package for doc

Log: build the pacakge of doc for dtkgui
2022-09-02 06:18:11 +00:00
Chen Bin 0abaada3ce fix: XdgIcon crashed in release mode
The return value is not processed effectively, resulting
in an exception under release mode.

Log:
Change-Id: I0c6e918a99fd6f28a441c23a28c786dac572f5e2
2022-08-31 11:11:45 +08:00
deepin-admin-bot edd1ce77ac "chore: Sync by " 2022-08-30 09:07:26 +00:00
Ye ShanShan bf97026e5e chore: Add zh_CN readme
add README.zh_CN.md

Log: 添加中文说明文档
Influence: none
Change-Id: I2be04bc4b9142d6ba3cb095a1a075212031d6895
2022-08-29 08:25:11 +08:00
xzl 77638b7fb5 chore: update .dep5
更新dep5文件

Log: 更新dep5文件
2022-08-19 10:31:01 +08:00
Chen Bin 4869430d96 fix: blocked UI when help service is not open
When migrating dtkwidget code, not all code was added
completely, leaving out how to get services through the
other thread.

Log:
Influence: None
Change-Id: Ib45b596bff68a138df0b0dd50d8fb8ec0c3827c4
2022-08-18 13:14:20 +08:00
ck d1188cf35b fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Ic71784120cacd66f763a72f38937fc0d99fb0454
2022-08-18 13:13:56 +08:00
ShootingStarDragons 7f227daf8a feat(tocmake): tocmake
I change the source code from qmake to cmake. Move the files
which will be install to the /usr/include to $root/include, which will
help to mattern match and easylier to do install. and the change will
break the build of qmake

Log: from qmake to cmake

Influence: qmake is breaked
2022-08-17 16:59:12 +08:00
deepin-bot[bot] b9d3127db6
chore: Sync by 8fb17418f4 (#49)
chore: Sync by 8fb17418f4
2022-08-16 09:28:16 +00:00
deepin-bot[bot] bdfcc85de9
chore: Sync by ab82576125 (#48)
chore: Sync by ab82576125
2022-08-16 00:07:28 +00:00
wangyixue 7efd175217 chore: Rename zh_CN README
Rename README_zh_CN.md to README.zh_CN.md.

Log: Rename zh_CN README
Influence: None
2022-08-15 08:12:50 +00:00
deepin-bot[bot] 689785e07e
chore: Sync by 64c2bdac28 (#46)
chore: Sync by 64c2bdac28
2022-08-15 02:22:49 +00:00
wangyixue 1ad9b719d5 chore: Add zh_CN README
Add zh_CN README.

Log: Add zh_CN README
Influence: None
2022-08-15 01:50:18 +00:00
deepin-bot[bot] c4bd7a1dd5
chore: Sync by 1086c873ff (#44)
chore: Sync by 1086c873ff
2022-08-12 01:59:12 +00:00
deepin-bot[bot] 0f802e61e4
chore: Sync by 8cd7951872 (#43)
chore: Sync by 8cd7951872
2022-08-11 08:45:53 +00:00
xzl 987b356f46 chore: adapt REUSE license header
修改版权声明

Log: 修改版权声明
2022-08-11 05:01:51 +00:00
Chen Bin 75e7f708ae chore: Add stream operators for DciIcon
Register the stream operators when the ddciicon
has been initialized. It is convenient to drag
and drop in the list view and register it into
the meta object.

Log:
Influence: None
Change-Id: I90ba9199bd3139e0423f1a3d8a6897990e697708
2022-08-11 02:41:51 +00:00
Wang Zichong c58b078b79 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-08-09 07:58:58 +00:00
Chen Bin 8a9fa760f0 feat: Register the DciIcon as a meta type
After registering the DciIcon as a meta type, it is
convenient for applications to use it on QVariant.

The << and >> operators are provided to facilitate
applications to read and write.

Log:
Influence: None
Change-Id: I0df76a9e5378a46dcb075b2368fd05eb360d074d
2022-07-29 07:31:23 +00:00
zccrs 2c345bbd26 fix: remove unused depend of Archlinux
Remove 'qt5-x11extras'.

Log:
2022-07-27 11:34:32 +08:00
deepin-bot[bot] 7e2f328a57
chore: Sync by fed570b6d7 (#35)
chore: Sync by fed570b6d7
2022-07-26 05:40:33 +00:00
Cloud 20fd72d9d3 fix: build failed when the .git folder exist
build failed when the .git folder exist

Log: fix build failed when the .git folder exist
2022-07-25 08:58:53 +00:00
justforlxz ffe5dfa572 fix: missing runtime qtxdg
add qtxdg package

Log:
2022-07-21 18:05:06 +08:00
deepin-bot[bot] 0c3dd24063
chore: Sync by (#33)
chore: Sync by
2022-07-21 09:55:45 +00:00
deepin-bot[bot] 6002ec2b37
chore: Sync by (#30)
chore: Sync by
2022-07-19 10:28:40 +00:00
ck ea044318c0 fix(build): arch build failed
add makedepends libqtxdg

Log:
Influence: none
Change-Id: I7993a5bd0ca9cadac0c2af38a10e9d45afd8d75a
2022-07-19 10:22:35 +08:00
ck a479eaa5a8 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Iefda76009421210bfb0132576e973757407fafd4
2022-07-19 10:22:35 +08:00
ck 4976a77764 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I6ba374db79ab7e5448317008cf97f26c5ba23b29
2022-07-19 10:22:35 +08:00
Chen Bin d0bf83a9f6 fix: Icon fallback for mode option only
In the method of getting icons in QML, only the mode of
the icon needs to be fallback, so change all fallback to
only fallback mode to ensure the consistency of the interface.

Log:
Influence: None
Change-Id: If95c352b77c89fba2e393e542d43f19aff665ba3
2022-07-19 10:22:35 +08:00
Chen Bin 454ba294a9 fix: DciIcon allows no fallback when matching icons
When using DciIcon, it is allowed to apply a fallback mechanism
that does not use DciIcon's own. In this case, the target icon
will be found directly by the parameters.

Log:
Influence: None
Change-Id: Ia288e3ba3bd08c2a7729cf9f6154e77e4ad7b512
2022-07-19 10:22:35 +08:00
Chen Bin b917cd8f65 fix: Add default icon fill style
1. For icons that do not use the palette, it is hoped that the
effect can be achieved by modifying the brightness of icons in
different states. Therefore, it is necessary to add an interface
for DciIcon to determine whether to use the palette.

2. Add the interface to modify the icon style by default, traverse
the pixels of the picture, and uniformly reduce the brightness.

Log:
Influence: None
Change-Id: I2c8592fab72751f887b51d48f346e562f82a51cc
2022-07-19 10:22:35 +08:00
ck 3cba7f1fce chore: update changelog version
update verion to 5.6.1

Log: none
Influence: none
Change-Id: I39e316f1e556d2fe67fc68bce5bcf2a303f25cbd
2022-07-19 10:22:35 +08:00
ck 326eb00c69 chore: use Qt5XdgIconLoader instead of Qt5Xdg
Qt5Xdg depends Qt5Widgets, dtkgui not depends Qt5Widgets

Log: none
Influence: none
Change-Id: I8dd89e323ff7c7cdaa5c9ac9ea62bc70d6d506e8
2022-07-19 10:22:35 +08:00
ck 71b349d2c7 fix(build): 覆盖旧配方rc文件重复添加
util.pri 中添加过 RESOURCES,去掉重复添加的

Log: none
Influence: none
Change-Id: Ie576f712405dc9309c164324f745567603a74bbc
2022-07-19 10:22:35 +08:00
wang fei 0f52bb9546 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: I4da222f8d3b65b85acb3d507acff51c219453aa1
2022-07-19 10:22:35 +08:00
ck e7568851c4 revert: 将拼写错误接口标记废弃
This revert commit 06d2103534a21346e3996dbbcdf7cd403411bf0e
标记废弃而不删除,保证接口不减少

Log:
Incluence: abi
Change-Id: I4c5a24088eeafacad7a421f91f4c97b069ebed48
2022-07-19 10:22:35 +08:00
Chen Bin 5c15f33b5d fix: Memory leakage of icons
When the picture data is empty, an uninitialized variable generates a
random-size picture, which takes up a lot of memory space. So these
variables must be initialized before they can be used to prevent unknown
problems.

Log:
Influence: Dci Icon
Change-Id: Ife9f6e02f3fe2cc07e9d6f9f39d76b6230c6c930
2022-07-19 10:22:35 +08:00
Chen Bin 4b8687678b fix: DCI path has one more '/' symbol
When looking for icon theme, redundant '/' symbols will
appear in the icon of parsing application.

Log:
Influence: None
Change-Id: Ib55a8d6132eb1ed2aec98918529d59c3dd9c9536
2022-07-19 10:22:35 +08:00
Chen Bin 503ac5d6b0 chore: fix typo
DPalette中存在错别字接口修复。

Log:
Influence: 使用dtkgui的应用的接口影响
Change-Id: I4622c7c9c40e2aa7f3924f332dbe9f20a0dfd9ac
2022-07-19 10:22:35 +08:00
ck 7eefcfe8ae fix(build): can't build with source format '3.0 (quilt)'
debian: switch packaging format from "quilt" to "native"

Log:
Influence: build
Change-Id: I2fdda4245fcc0e467b9d815c846d791791950b3f
2022-07-19 10:22:35 +08:00
Ye ShanShan ca0a01c9c7 feat: add openUrl function
it's convenient for qml moved openUrl from dtkwidget to dtkgui.

Log: 
Influence: dtkdeclarative relys on this commit.
Change-Id: I7f720b02e91467a2bfb2bd3608afba8ad0d12312
2022-07-19 10:22:35 +08:00
Ye ShanShan 679a234177 feat: Add user manual functon
widgets and quick both use user manual,
so it is moved from DApplication.

Log: 
Influence: dtkdeclarative relys on this commit.
Change-Id: Ie2a5fb7edffb9ceeee48d42ba1b396291a4e5539
2022-07-19 10:22:35 +08:00
ck 7484c50c08 fix: 修复异常退出时再次启动失败的问题
reverts commit 88e0b51da7
去掉原来通过共享内存记录pid的方式来避免快速启动应用导致单进程失败的实现
改成启动时通过QLockFile来确保是 server 还是 client。保证只有一个 server ,其他
都是 client (旧逻辑:启动先通过localsocket连接 localserver,连接失败再启动
server,正常启动时没有问题, 当脚本快速多次启动(detached)单进程应用时,都在
等待连接,超时之后就启动了多个应用)

Bug: https://pms.uniontech.com/bug-view-111699.html
Log:
Influence: single-instance
Change-Id: I9b38e039abbbd70de969a1abf2f4f37fe07e1315
2022-07-19 10:22:35 +08:00
Chen Bin 6393c2e1ee refactor: Refactor the attribute parsing function
1. Separate the logic of each step so that the parsing part of each
property does not interfere with each other.

2. Fix the problem of parsing failure when it has `padding` and no
`palette` in the property

Log:
Influence: None
Change-Id: I35c2b807a72d6329a222fbcd99ce5b656e1dc412
2022-07-19 10:22:35 +08:00
wang fei 2c0a96ce2a feat: ddciicon增加fromTheme接口
1. 增加static DDciIcon fromTheme(const QString &name);
2. 增加static DDciIcon fromTheme(const QString &name, const DDciIcon &fallback);

Log:
Influence: fromTheme接口
Change-Id: I280bbac69e68bd500069ad145baf02861311f3f7
2022-07-19 10:22:35 +08:00
zccrs 3dd4b9b5fa feat: support group name on find dci icon file
Use the '/' to split the icon group name and it's actual icon name.
In the dtkdeclarative and dtkwidget, should be add the application
id for prefix for the icon name, eg: the "test" built-in icon in the
"org.deepin.app" application,  when to find it with
DIconTheme::findDciIconFile, the "iconName" argument should is
"org.deepin.app/test".

Influence: 无

Log:
Change-Id: Icc45faf16926993a6281aca5bee995b839c5b462
2022-07-19 10:22:35 +08:00