Commit Graph

2637 Commits

Author SHA1 Message Date
github-actions[bot] 816584d751 chore: New release 5.7.21
Log:
2025-08-14 20:28:24 +08:00
yeshanshan bd6a9cdb28 fix: resolve various compilation warnings
1. Fixed unused parameter warnings by removing parameter names in lambda
captures
2. Added Qt version check for deprecated AA_UseHighDpiPixmaps attribute
3. Fixed documentation comment syntax in DFontComboBox
4. Added nullptr check for QGuiApplication::inputMethod()
5. Added parent parameter in DPrintPreviewWidget constructor
6. Fixed pixel metric switch case with static cast
7. Updated meta type registration for Qt6 compatibility
8. Removed unused variable casts in test cases
9. Added Qt version check for QContextMenuEvent constructor

Influence:
1. Verify UI elements still render correctly after DPI attribute changes
2. Test input method behavior on tablet devices
3. Check print preview functionality
4. Validate combo box and text edit test cases still pass
5. Confirm no new warnings appear during compilation

fix: 修复各种编译警告

1. 在lambda捕获中移除未使用的参数名以消除警告
2. 添加Qt版本检查处理废弃的AA_UseHighDpiPixmaps属性
3. 修复DFontComboBox中的文档注释语法
4. 为QGuiApplication::inputMethod()添加nullptr检查
5. 在DPrintPreviewWidget构造函数中添加父控件参数
6. 使用静态转换修复像素度量switch case
7. 更新元类型注册以兼容Qt6
8. 移除测试用例中未使用的变量转换
9. 为QContextMenuEvent构造函数添加Qt版本检查

Influence:
1. 验证DPI属性变更后UI元素仍能正确渲染
2. 测试平板设备上的输入法行为
3. 检查打印预览功能
4. 确保组合框和文本编辑测试用例仍能通过
5. 确认编译时不再出现新的警告
2025-08-14 11:39:42 +00:00
transifex-integration[bot] 88a59ef567
i18n: [dtkwidget] Updates for project Deepin Tool Kit (#677)
* i18n: Translate dtkwidget.ts in ms

100% translated source file: 'dtkwidget.ts'
on 'ms'.

* i18n: Translate dtkwidget.ts in nl

100% translated source file: 'dtkwidget.ts'
on 'nl'.

* i18n: Translate dtkwidget.ts in fi

100% translated source file: 'dtkwidget.ts'
on 'fi'.

* i18n: Translate dtkwidget.ts in hu

100% translated source file: 'dtkwidget.ts'
on 'hu'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in it

100% translated source file: 'dtkwidget.ts'
on 'it'.

* i18n: Translate dtkwidget.ts in ca

100% translated source file: 'dtkwidget.ts'
on 'ca'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in ja

69% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ja'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in pl

100% translated source file: 'dtkwidget.ts'
on 'pl'.

* i18n: Translate dtkwidget.ts in hi_IN

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hi_IN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sq

100% translated source file: 'dtkwidget.ts'
on 'sq'.

* i18n: Translate dtkwidget.ts in nb

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'nb'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ne

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ne'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in de

100% translated source file: 'dtkwidget.ts'
on 'de'.

* i18n: Translate dtkwidget.ts in ug

100% translated source file: 'dtkwidget.ts'
on 'ug'.

* i18n: Translate dtkwidget.ts in pt

95% of minimum 10% translated source file: 'dtkwidget.ts'
on 'pt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in hr

65% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in uk

100% translated source file: 'dtkwidget.ts'
on 'uk'.

* i18n: Translate dtkwidget.ts in bg

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bg'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in cs

100% translated source file: 'dtkwidget.ts'
on 'cs'.

* i18n: Translate dtkwidget.ts in am_ET

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'am_ET'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bn

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bn'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in br

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'br'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in ko

37% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ko'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bo

100% translated source file: 'dtkwidget.ts'
on 'bo'.

* i18n: Translate dtkwidget.ts in az

100% translated source file: 'dtkwidget.ts'
on 'az'.

* i18n: Translate dtkwidget.ts in ast

23% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ast'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in fa

25% of minimum 10% translated source file: 'dtkwidget.ts'
on 'fa'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sr

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ru

100% translated source file: 'dtkwidget.ts'
on 'ru'.

* i18n: Translate dtkwidget.ts in fr

100% translated source file: 'dtkwidget.ts'
on 'fr'.

* i18n: Translate dtkwidget.ts in sk

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sk'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ro

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ro'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in gl_ES

100% translated source file: 'dtkwidget.ts'
on 'gl_ES'.

* i18n: Translate dtkwidget.ts in eu

36% of minimum 10% translated source file: 'dtkwidget.ts'
on 'eu'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ar

89% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ar'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sl

100% translated source file: 'dtkwidget.ts'
on 'sl'.

* i18n: Translate dtkwidget.ts in tr

100% translated source file: 'dtkwidget.ts'
on 'tr'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in lt

31% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in id

24% of minimum 10% translated source file: 'dtkwidget.ts'
on 'id'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in da

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'da'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in lo

15% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lo'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in lo

100% translated source file: 'dtkwidget.ts'
on 'lo'.

---------

Log:
2025-08-14 14:23:35 +08:00
yeshanshan 725e0a0c83 fix: update transifex configuration
1. Removed minimum_perc and mode settings from main section
2. Updated resource identifier from 'dwidget' to hash-based identifier
3. Cleaned up whitespace in the configuration file

The changes were made to align with Transifex's updated configuration
requirements and to standardize resource identifiers across the project.
The hash-based identifier provides better uniqueness and consistency.

Influence:
1. Verify translations are still being properly synced with Transifex
2. Check that translation files are being generated correctly
3. Ensure no regression in translation functionality

fix: 更新Transifex配置

1. 从main部分移除了minimum_perc和mode设置
2. 将资源标识符从'dwidget'更新为基于哈希的标识符
3. 清理了配置文件中的空白字符

这些更改是为了符合Transifex更新的配置要求,并使项目中的资源标识符标准
化。基于哈希的标识符提供了更好的唯一性和一致性。

Influence:
1. 验证翻译仍能正确与Transifex同步
2. 检查翻译文件是否正确生成
3. 确保翻译功能没有回归
2025-08-14 13:28:31 +08:00
yeshanshan 72b17970f1 feat: update translation configurations and translations
1. Added .tx/transifex.yaml configuration file for translation
management
2. Updated license and copyright information in translation files
3. Improved Arabic translations with corrected terms and completed
missing translations
4. Updated Chinese translations for "Acknowledgements" term
5. Added various language translations (Japanese, German, French,
Italian, etc)
6. Removed SPDX headers from translation files to avoid duplication

Log: Updated translation configurations and improved translations

Influence:
1. Verify all translations display correctly in UI
2. Check translation management works with Transifex
3. Test language switching functionality
4. Validate license/copyright information in about dialogs

feat: 更新翻译配置和翻译内容

1. 新增.tx/transifex.yaml翻译管理配置文件
2. 更新翻译文件中的许可证和版权信息
3. 改进阿拉伯语翻译,修正术语并补全缺失翻译
4. 更新中文"鸣谢"翻译为"致谢"
5. 新增多种语言翻译(日语、德语、法语、意大利语等)
6. 移除翻译文件中的SPDX头以避免重复

Log: 更新翻译配置并改进翻译内容

Influence:
1. 验证所有翻译在界面中正确显示
2. 检查与Transifex的翻译管理功能
3. 测试语言切换功能
4. 验证关于对话框中的许可证/版权信息
2025-08-13 14:27:58 +08:00
yeshanshan 0214421522 fix: prevent background type from overriding custom item spacing
1. Changed DStyledItemDelegate to initialize itemSpacing with -1 as
default value
2. Added spacing() method to handle negative spacing values
3. Modified setBackgroundType to only set spacing when no custom spacing
was set (spacing < 0)
4. Updated all spacing references to use the new spacing() method

Log: Fixed issue where setting background type would override custom
item spacing values

Influence:
1. Test setting custom item spacing values before/after changing
background types
2. Verify spacing behavior with different background types
(RoundedBackground, ClipCornerBackground)
3. Check layout calculations with custom spacing values
4. Test list view rendering in both LeftToRight and TopToBottom flows

fix: 修复设置背景类型会覆盖自定义间距值的问题

1. 修改 DStyledItemDelegate 默认将 itemSpacing 初始化为 -1
2. 新增 spacing() 方法处理负间距值
3. 修改 setBackgroundType 仅在未设置自定义间距时(spacing < 0)才设置
间距
4. 更新所有间距引用使用新的 spacing() 方法

Log: 修复了设置背景类型会覆盖自定义间距值的问题

Influence:
1. 测试在更改背景类型前后设置自定义间距值
2. 验证不同背景类型(RoundedBackground, ClipCornerBackground)下的间距行为
3. 检查使用自定义间距值时的布局计算
4. 测试列表视图在 LeftToRight 和 TopToBottom 两种流式布局下的渲染效果
2025-08-13 05:55:47 +00:00
yeshanshan bee46d591d Revert "fix: prevent itemSpacing override in setBackgroundType"
This reverts commit 3a4600cd30.
2025-08-13 05:55:47 +00:00
github-actions[bot] 50b00b0d9d chore: New release 5.7.20
Log:
2025-07-31 12:31:04 +00:00
yeshanshan 32d0f1ee53 fix: resolve Qt6 compatibility issues
1. Replace deprecated qAsConst with std::as_const for Qt6 compatibility
2. Update key sequence handling to use | operator instead of + for Qt6
3. Fix touch event handling for Qt6 API changes
4. Replace stateChanged with checkStateChanged for Qt6 checkbox signals
5. Add version checks for Qt6-specific API changes
6. Fix various other Qt6 deprecation warnings

These changes ensure the codebase works correctly with both Qt5 and
Qt6, addressing API changes and deprecations in Qt6 while maintaining
backward compatibility. Key technical changes include:
- Using Qt version checks for API differences
- Standardizing on newer APIs where possible
- Maintaining compatibility with both major Qt versions

fix: 解决Qt6兼容性问题

1. 使用std::as_const替代已弃用的qAsConst以兼容Qt6
2. 更新键序列处理,在Qt6中使用|运算符而非+
3. 修复Qt6中触摸事件处理的API变更
4. 将stateChanged替换为checkStateChanged以适配Qt6复选框信号
5. 添加Qt6特定API变更的版本检查
6. 修复其他Qt6弃用警告

这些修改确保代码库能正确工作在Qt5和Qt6环境下,解决了Qt6中的API变更和弃用
问题,同时保持向后兼容性。关键技术变更包括:
- 针对API差异使用Qt版本检查
- 尽可能标准化使用新API
- 保持对两个主要Qt版本的兼容性
2025-07-28 16:05:40 +08:00
yeshanshan 3a4600cd30 fix: prevent itemSpacing override in setBackgroundType
1. Removed automatic itemSpacing adjustment in
DListView::setBackgroundType
2. Added itemSpacing() method in DStyledItemDelegate to dynamically
calculate spacing based on background type
3. Changed itemSpacing member to spacing with default value -1 to
indicate custom spacing
4. Updated all references to use the new itemSpacing() method

The changes prevent the itemSpacing value from being unintentionally
overwritten when setting backgroundType, while maintaining backward
compatibility with the default spacing values for different background
types. This gives more control to developers to set custom spacing
values that won't be overridden by background type changes.

fix: 修复设置背景类型时覆盖itemSpacing值的问题

1. 移除了DListView::setBackgroundType中自动调整itemSpacing的逻辑
2. 在DStyledItemDelegate中添加itemSpacing()方法根据背景类型动态计算间距
3. 将itemSpacing成员改为spacing并设置默认值-1表示自定义间距
4. 更新所有引用以使用新的itemSpacing()方法

这些修改防止了在设置backgroundType时意外覆盖itemSpacing值的问题,同时保
持了对不同背景类型默认间距值的向后兼容性。这为开发者提供了更多控制权,可
以设置不会被背景类型更改覆盖的自定义间距值。
2025-07-23 10:50:11 +08:00
kuchune a21622a82a chore(CI): add debian check workflow
add debian check workflow

log: 增加debian检查工作流
2025-07-08 09:42:12 +00:00
github-actions[bot] cff2623eb2 chore: New release 5.7.19
Log:
2025-07-03 13:23:18 +00:00
yeshanshan 290b84eb53 fix: add security hardening flags and optimize build settings
1. Added security hardening compilation flags in debian/rules including:
   - Stack protection (-fstack-protector-all)
   - Relocation hardening (-Wl,-z,relro/now/noexecstack)
   - Warning flags (-Wall)
2. Simplified dtkwidget.cmake by removing redundant linker flags
3. Maintained essential security flags while cleaning up build
configuration
4. These changes improve binary security while keeping build process
efficient

fix: 添加安全加固标志并优化构建设置

1. 在debian/rules中添加安全加固编译标志包括:
   - 栈保护 (-fstack-protector-all)
   - 重定位加固 (-Wl,-z,relro/now/noexecstack)
   - 警告标志 (-Wall)
2. 简化dtkwidget.cmake,移除冗余链接器标志
3. 在保持基本安全标志的同时清理构建配置
4. 这些改动在保持构建效率的同时提高了二进制安全性
2025-07-03 21:03:48 +08:00
github-actions[bot] f20be8bedc chore: New release 5.7.18
Log:
2025-06-27 09:19:14 +00:00
yeshanshan 2d88b9ec79 fix: make version optional in release workflow and update spec file
1. Changed version parameter to be optional in GitHub workflow to allow
more flexible release process
2. Updated rpm spec file formatting for consistency and added %{?dist}
macro for proper package naming

The changes allow for:
- More flexible release process where version can be omitted
- Better formatted spec file with proper dist macro for package naming

fix: 使发布工作流中的版本可选并更新spec文件

1. 将GitHub工作流中的版本参数改为可选,以实现更灵活的发布流程
2. 更新rpm spec文件格式以保持一致性,并添加%{?dist}宏以正确命名包

这些更改允许:
- 更灵活的发布流程,可以省略版本号
- 格式更好的spec文件,带有正确的dist宏用于包命名
2025-06-27 16:44:07 +08:00
github-actions[bot] 468c8e7b1f chore(rpm): New release 5.7.17
Log:
2025-06-19 10:22:21 +08:00
asterwyx d65f32d9f1 chore: update .syncexclude
Exclude CHANGELOG.md.
2025-06-18 17:00:40 +08:00
Ye ShanShan d377893d9f feat: update window control icons and drawing logic
1. Replaced window_normal.dci with window_restore.dci and
window_quit_full.dci icons
2. Updated icon references in dtk-icon-theme.qrc resource file
3. Simplified title bar button drawing functions to use new icons
instead of manual drawing
4. Modified DStyle implementation to use the new icon assets
5. Improved visual consistency by using pre-made icons rather than
programmatic drawing

The changes were made to:
- Standardize window control icons across the application
- Replace programmatic drawing with higher quality vector icons
- Make the UI more maintainable by using consistent icon assets
- Prepare for future theme support by using icon resources

feat: 更新窗口控制图标和绘制逻辑

1. 用 window_restore.dci 和 window_quit_full.dci 图标替换了
window_normal.dci
2. 更新了 dtk-icon-theme.qrc 资源文件中的图标引用
3. 简化了标题栏按钮绘制函数,使用新图标替代手动绘制
4. 修改了 DStyle 实现以使用新的图标资源
5. 通过使用预制图标而非程序绘制提高了视觉一致性

这些修改的目的是:
- 标准化应用程序中的窗口控制图标
- 用更高质量的矢量图标替代程序绘制
- 通过使用一致的图标资源提高UI可维护性
- 通过使用图标资源为未来主题支持做准备
2025-06-18 14:33:42 +08:00
Yixue Wang 9618f0c4d4 feat(ci): Add auto release workflow
Log: as title
2025-06-11 11:47:29 +08:00
Yixue Wang 888f22cd21 feat: Support VERSION file
Use VERSION file to manage DTK version. VERSION file defines package version. It also decides the initial value of cached variable DTK_VERSION which controls the project version in cmake build system. VERSION file is not synchronized to DTK6, as DTK6 has its own VERSION file. One can still pass version to DTK_VERSION when running cmake configure. This is helpful for developers.

Signed-off-by: Yixue Wang <wangyixue@deepin.org>
2025-06-11 11:47:29 +08:00
Ye ShanShan 809f6d3f0f chore: bump version to 5.7.16
update changelog to 5.7.16
2025-05-19 09:26:18 +00:00
Ye ShanShan f31f35a717 chore: bump version to 5.7.15
update changelog to 5.7.15
2025-05-08 10:48:41 +00:00
Ye ShanShan 70e23381ad fix: correct text elision behavior with shortcuts
Fixed the text elision behavior in DLabel to properly handle cases
where the label contains shortcut mnemonics. The change modifies the
Qt::TextShowMnemonic flag to only be applied when the label actually has
a shortcut (d->hasShortcut). This prevents incorrect text display when
eliding labels without shortcuts.

fix: 修正带快捷键标签的文本省略行为

修复了 DLabel 中文本省略行为,正确处理包含快捷键助记符的情况。修改了
Qt::TextShowMnemonic 标志,使其仅在标签实际具有快捷键(d->hasShortcut)时
应用。这防止了在没有快捷键的标签上出现错误的文本显示。

pms: BUG-285143
2025-04-29 10:45:24 +08:00
Ye ShanShan d6ed6eaae0 style: adjust website link style in about dialog
1. Removed fixed font-size from website link template to use consistent
font sizing
2. Added font binding for website label using font manager with T8 size
and Medium weight
3. This ensures consistent typography across the application and better
accessibility

style: 调整关于对话框中网站链接样式

1. 从网站链接模板中移除固定字体大小,改用一致的字体大小设置
2. 为网站标签添加字体管理器绑定,使用T8大小和中等等级
3. 确保应用程序中一致的排版和更好的可访问性

pms: BUG-314767
2025-04-28 10:44:10 +00:00
Ye ShanShan 120663aa05 chore: reuse warning
as title.
2025-04-25 15:35:16 +08:00
Ye ShanShan 955b9205fd fix: watermark can't select picture for PrintPreivew
incorrect format for dialog's filter.

pms: BUG-311847
2025-04-18 14:42:45 +08:00
ComixHe be61a18045 build: compiling failed with Qt 6.9
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-04-18 14:19:42 +08:00
Ye ShanShan 00b28ebdec chore: bump version to 5.7.14
update changelog to 5.7.14
2025-04-17 13:58:17 +00:00
Ye ShanShan fe16c8e9dc fix: wheel event is accepted in qt6
QApplication::notify has change the default action
``` qapplication.cpp
we.setAccepted(true);
we.m_spont = wheel->spontaneous() && w == receiver;
res = d->notify_helper(w, &we);
eventAccepted = we.isAccepted();
```
Event is accepted if we don't call parent class event function,
it cause event will not be passed on to it's parentWidget.
and it's different with qt5.

pms: BUG-306251
2025-04-09 08:39:34 +00:00
覃本学 4fc03629b2 fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
原本使用的色板中button的颜色,现改为带透明度的黑色和白色

Log: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
Bug: https://pms.uniontech.com/bug-view-250757.html
Influence: DTK SwitchButton按钮 (开关)
Change-Id: Ifb231a3a9ec548d6970d240eaf2667e50ffed9f3
2025-04-08 06:57:38 +00:00
wangshaojun ce495514e1 fix: DToolTip宽度计算
DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51
2025-03-31 03:45:21 +00:00
wangshaojun 7387db734f fix: DFloatingMessage宽度计算
DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157
2025-03-27 09:16:40 +00:00
Ye ShanShan 9d758fe456 chore: bump version to 5.7.13
update changelog to 5.7.13
2025-03-20 18:07:33 +08:00
Ye ShanShan c611da8a15 fix: accessing wild pointer for DAboutDialog
acknowledgementLabel is wild pointer if DDialog::clearContents
is called.
aboutDialog->setLicenseEnabled is not need to call when reactive
the dialog

pms: TASK-368399
2025-03-19 11:30:15 +08:00
zhangkun add9c2ad31 feat: increase fallback for password character
0x26ab code points support fewer fonts, so we added 0x25CF with a wider range of adaptability as a fallback

pms: BUG-305575
2025-03-18 19:27:09 +08:00
Ye ShanShan 599571424d chore: bump version to 5.7.12
update changelog to 5.7.12
2025-03-06 17:41:46 +08:00
Ye ShanShan 65b8848ff9 fix: failed to save too long filename for DPrintPreviewWidget
Truncate file name to limit file's length.

pms: BUG-297841
2025-03-06 16:30:18 +08:00
Ye ShanShan 5a2e699eb7 chore: remove warning in qt6
as title.

pms: TASK-368399
2025-03-06 09:19:59 +08:00
jingshenghao b4454775dd 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:04:21 +08:00
jingshenghao 80e141384d doc: update docs for dwatermarkhelper
更新dwatermarkhelper的文档,添加示例代码

Log: update docs

Issue:
2025-03-04 20:04:21 +08:00
Ye ShanShan 59839f91e4 chore: bump version to 5.7.11
update changelog to 5.7.11
2025-02-27 21:06:39 +08:00
Ye ShanShan da171354d4 fix: window filickering caused by animation for DDrawer
WM's animation is confliclt with Widget.
We disable DDrawer's animation when window is invisible, and
can use D_DTK_DISABLE_ANIMATIONS to disable it's animation.

pms:BUG-242611
2025-02-25 11:24:55 +08:00
Ye ShanShan 9be9d310f4 fix: app crashed for DBlurEffectWidget in qt6
it's maybe a feature for qt6, we can't modify backingStore when
readying the widget.

``` QWidget::paintEvent(QPaintEvent *event)
QPainter pa(this);
// pa.end() // it's ok when modifing backingStore.
QImage image(window()->backingStore()->handle()->toImage());
image.detach();
```

pms:BUG-304317
2025-02-24 14:52:45 +08:00
Ye ShanShan a6a0bd630e fix: titlebar can't drag after close DAboutDialog
There is no need to get dpr based on the window.
It causes the window can't get mouse event if using
new DAboutDialog(window)).

pms:BUG-304097
2025-02-21 11:47:14 +08:00
Ye ShanShan 4284bc78bc fix: PrintPreview can't switch orientation
it's introduced when adapting to qt6 in the commit 637e3eb.

pms:BUG-298085
2025-02-17 12:50:42 +08:00
Ye ShanShan 73dd1e89fd chore: bump version to 5.7.10
update changelog to 5.7.10
2025-02-13 11:01:12 +00:00
覃本学 68e8a18dc1 fix: 修复 桌面/文管文件,打开属性窗口闪烁
窗管渲染动画问题,动画太快则会闪烁,窗管暂时无解决方案,经讨论后采用规避方案,优化动画时间和动画播放曲线
更改后在问题机L410, 还有L420自测均未再复现

Log: 修复 桌面/文管文件,打开属性窗口闪烁
Bug: https://pms.uniontech.com/bug-view-242611.html
     https://pms.uniontech.com/bug-view-242571.html
Influence: DTK DDrawer控件
Change-Id: I72bb837f6a4b1393555e7a55c382d5878147a4fd
2025-02-13 08:57:08 +00:00
deepin-ci-robot fddc7cd1e2 chore: update changelog
Release 5.7.9.
2025-01-23 09:48:05 +00:00
Ye ShanShan 3f6e005d05 fix: missing QT_QPA_PLATFORM for DApplication
it's useful for children process. and like revert the commit
cbcb732b75
2025-01-23 15:35:41 +08:00
deepin-ci-robot d545362250 chore: update changelog
Release 5.7.8.
2025-01-14 12:05:33 +00:00