Commit Graph

767 Commits

Author SHA1 Message Date
Ye ShanShan d8ded4a51d chore: bump version to 5.7.15
update changelog to 5.7.15
2025-05-08 10:48:19 +00:00
Ye ShanShan 579d86a5f1 fix: correct bitwise operation in dconfig status tracking
1. Fixed incorrect bitwise AND operation in property status tracking
2. Changed `fetchAndAndOrdered(1 << index)` to `fetchAndAndOrdered(~(1
<< index))`
3. This ensures proper bit clearing when unsetting property flags
4. The change was made in both the generated header and the generator
tool
5. Without this fix, status tracking would incorrectly set bits instead
of clearing them

fix: 修正 dconfig 状态跟踪中的位操作

1. 修复了属性状态跟踪中错误的位与操作
2. 将 `fetchAndAndOrdered(1 << index)` 改为 `fetchAndAndOrdered(~(1
<< index))`
3. 确保在取消设置属性标志时能正确清除位
4. 修改同时应用于生成的头部文件和生成器工具
5. 若不修复此问题,状态跟踪会错误地设置位而非清除它们
2025-05-08 09:46:40 +00:00
Ye ShanShan 8e51803b6e chore: update REUSE license file patterns
1. Added new file patterns to the REUSE license configuration
2. Included cmake/*.in and misc/*.in files under CC0-1.0 license
3. Maintains consistent licensing documentation for build system files

chore: 更新 REUSE 许可证文件模式

1. 在 REUSE 许可证配置中添加了新的文件模式
2. 将 cmake/*.in 和 misc/*.in 文件纳入 CC0-1.0 许可证范围
3. 保持构建系统文件许可文档的一致性
2025-05-07 03:45:01 +00:00
Ye ShanShan 7319297676 fix: add QPointer check for parent object safety
1. Added QPointer include for tracking parent object lifecycle
2. Changed parent initialization to nullptr in constructor for safety
3. Implemented parent object tracking using QPointer to prevent dangling
pointers
4. Added logic to handle parent object deletion during async operation
5. Added proper parent reassignment if parent still exists after
operation

These changes prevent potential crashes when parent objects are deleted
during asynchronous configuration operations, particularly important in
multi-threaded scenarios where parent objects might be destroyed while
operations are pending.

fix: 添加 QPointer 检查确保父对象安全

1. 添加 QPointer 头文件用于跟踪父对象生命周期
2. 构造函数中将父对象初始化为 nullptr 提高安全性
3. 使用 QPointer 实现父对象跟踪,防止悬垂指针
4. 添加处理异步操作期间父对象被删除的逻辑
5. 操作完成后如果父对象仍存在则正确重新设置父对象

这些修改防止了在异步配置操作期间父对象被删除时可能导致的崩溃,对于多线程
场景下父对象可能在操作挂起时被销毁的情况尤为重要。
2025-05-07 03:45:01 +00:00
JiDe Zhang e619ccdba3 chore: bump version to 5.7.14
update changelog to 5.7.14
2025-04-12 17:55:30 +08:00
JiDe Zhang 8db10c9145 fix: resolve compilation failure on Qt 6.9
Updated the dvtablehook.h file to adjust the typedef for Fun2ReturnType
based on changes in Qt 6.9 interfaces. Additionally, the main.cpp
file now casts the unicode value to short to prevent type issues.
These changes are necessary to ensure compatibility with the latest
Qt framework and to resolve the build issues that arise from interface
modifications.

修复: 解决在Qt 6.9上的编译失败

更新了dvtablehook.h文件,以根据Qt 6.9接口的变化调整Fun2ReturnType的
typedef。此外,main.cpp文件现在将unicode值转换为short,以防止类型问题。
这些更改对于确保与最新Qt框架兼容以及解决接口修改引起的构建问题是必要的。
2025-04-12 17:55:30 +08:00
Ye ShanShan d6dd19e5f6 chore: bump version to 5.7.13
update changelog to 5.7.13
2025-03-20 18:07:22 +08:00
JiDe Zhang bb9e5bead2 fix: add copyright for dconfig_org_deepin_dtk_preference.hpp
This is a generate file, so copyright is none.
2025-03-19 11:41:21 +08:00
JiDe Zhang e8eedb9efe feat: supports create generic config by dconfig2cpp 2025-03-06 20:59:55 +08:00
JiDe Zhang c250cf2111 fix: build failed on Qt6
create dconfig2cpp's config failed if not assign application id.
Add missing parameter in dconfig2cpp generated code.
2025-03-06 20:59:55 +08:00
Ye ShanShan 06bb511db1 chore: bump version to 5.7.12
update changelog to 5.7.12
2025-03-06 17:40:22 +08:00
JiDe Zhang e6985b9351 feat: dconfig2cpp always add bindableFoo functions on Qt6
Direct string literal for the property name, because the literal was
use on the Q_PROPERTY macro, so use the hex encode for the property name
strings can't avoid the Chinese text codec problems.
2025-03-06 17:18:56 +08:00
jingshenghao 5a85299d3e feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
2025-03-04 20:02:08 +08:00
Ye ShanShan fd671e2509 chore: bump version to 5.7.11
update changelog to 5.7.11
2025-02-27 21:06:33 +08:00
JiDe Zhang 8b8bb8512c feat: dconfig2cpp generated codes supports qml
On the DtkDeclarative's DConfigWrapper, it needs know whether the value
is default, so always create the *IsDefaultValue functions.
2025-02-25 09:53:04 +08:00
zhangkun d86c290665 feat: export ProductType for QML
as title

pms: BUG-303845
2025-02-24 18:36:08 +08:00
JiDe Zhang 6dfb3c767a feat: async get dconfig value for DLog
Avoid block the application if DConfig's IO is slow.
2025-02-20 19:45:06 +08:00
JiDe Zhang a9a569b42a feat: support auto generate the Qt code from a dconfig's json
To help developer get/set dconfig in the non GUI thread.
2025-02-20 19:45:06 +08:00
Ye ShanShan 90b86255cb chore: bump version to 5.7.10
update changelog to 5.7.10
2025-02-13 11:01:39 +00:00
deepin-ci-robot 1aad463185 chore: update changelog
Release 5.7.9.
2025-01-23 17:43:55 +08:00
deepin-ci-robot 5d2719af93 chore: update changelog
Release 5.7.8.
2025-01-14 20:02:03 +08:00
deepin-ci-robot 85bd895d38 chore: update changelog
Release 5.7.7.
2025-01-09 18:33:20 +08:00
deepin-ci-robot d518836e22 chore: update changelog
Release 5.7.6.
2025-01-02 06:41:42 +00:00
deepin-ci-robot 9e8e68f63c chore: update changelog
Release 5.7.5.
2024-12-17 09:55:21 +08:00
Ye ShanShan 951314d59c fix: double value is converted to int for DConfig
MetaType of 1.0 is qlonglong instead of double in json file.
We don't convert if source value is double.
2024-12-12 17:58:32 +08:00
Ye ShanShan 53be287abf fix: pidfd leak
pidfd must be closed by caller according QDBusUnixFileDescriptor.

pms: BUG-293049
2024-12-10 09:10:47 +08:00
deepin-ci-robot 7b15212ee8 chore: update changelog
Release 5.7.4.
2024-12-04 18:15:44 +08:00
Yixue Wang e1f300f68c fix: compilation on Qt 6.8.1
Fix beginEntryList.
2024-12-03 14:13:18 +08:00
Ye ShanShan ca52ff7a2c fix: hasVtable is incorrect when destructing
Destruct function should be called by 'autoCleanVtable' instead of
'callOriginalFun'.
'glostVtable' should be delete before calling origin destruct,
because 'resetVtable' maybe called when destructing origin destruct.

pms: BUG-368399
2024-12-02 17:45:48 +08:00
deepin-ci-robot fc0280e7b9 chore: update changelog
Release 5.7.3.
2024-11-22 10:28:21 +08:00
deepin-ci-robot 7897313cce chore: update changelog
Release 5.7.2.
2024-11-15 05:47:02 +00:00
deepin-ci-robot beb4cd331d chore: update changelog
Release 5.7.1.
2024-10-31 10:24:56 +08:00
ck c234a5cb38 fix(build): debian/rule use tab instead of space
space ==> tab
2024-10-23 10:58:39 +08:00
Zhang Dingyuan 2e0b67ec2d feat: support Qt 6.8
support qt 6.8

Log:
2024-10-22 11:20:33 +00:00
ck 918c40f616 fix(dlog): JournalAppender not work
BUILD_WITH_SYSTEMD not defined
2024-10-18 14:14:35 +08:00
groveer 280791db27 fix(util): error appid from `getAppIdFromAbsolutePath`
Log: tmp变量读出来的字符串多带了一个字符
2024-09-09 10:38:13 +08:00
Robert Lv 40cbafcf8f fix: DDBusInterface signal loss
Fix the issue of no signal when DDBusInterface object properties change
2024-09-09 10:37:49 +08:00
renbin b0efc5a796 fix: remove unnecessary link libraries
These two libraries are used to detect text encoding,
but they are actually loaded dynamiclly.
Not need to link libraries.
2024-09-09 10:37:18 +08:00
Whale107 797101ccda
feat: 增加智能终端设备类型 (#434)
增加智能终端设备类型

Log:
2024-08-23 06:24:12 +00:00
deepin-ci-robot e73c73c862 chore: update changelog
Release 5.6.34.
2024-08-21 16:47:21 +08:00
deepin-ci-robot 2ebb0a17d2 chore: update changelog
Release 5.6.32.
2024-07-10 11:08:37 +08:00
ck 1a6e919cc5 refactor: log files move to dtklog
Issue: linuxdeepin/dtk#182

dtklog: https://github.com/linuxdeepin/dtklog
2024-07-05 14:13:31 +08:00
deepin-ci-robot 51feaf445c chore: update changelog
Release 5.6.31.
2024-06-27 17:56:51 +08:00
zsien a1add007e3 chore: use '&&' and '||' instead of 'and' and 'or'
一些项目使用了 -fno-operator-names,会导致编译失败
2024-06-07 15:42:45 +08:00
deepin-ci-robot f326ac4c20 chore: update changelog
Release 5.6.30.
2024-05-31 15:27:33 +08:00
ck 6f02ee5d78 chore: add nullptr check
nullptr check
2024-05-30 10:56:46 +08:00
ck 10bd3842bb fix(build): build faild on Qt 6.7.1
QAbstractFileEngine::FileTime ==> QFile::FileTime
2024-05-28 13:13:09 +08:00
ck 052f52ba00 chore: fallback to dsgconfig value
fallback to default dsgconfig value
2024-05-21 16:25:34 +08:00
Ye ShanShan c56b7ea891 fix: crashed when access DSGApplication::id early
Add fallback, using fileName or cmdline as AppId.
Remove assert for empty appId.
2024-05-21 10:13:51 +08:00
ck 653f6dce7e refactor: remove LoggingRules interface
- 移除相关接口, 默认启用(可以用 DTK_DISABLED_LOGGING_RULES 禁用)
- 优先使用 dsgAppId , 用户可以通过 DTK_LOGGING_FALLBACK_APPID 指定
  fallbackAppId
- 有配置过 rules 时, 优先使用(即非默认值优先)
- fallbackConfig 发生变化时会检查 dsgConfig 是否修改过,是则忽略
2024-05-17 09:56:39 +08:00