Commit Graph

2630 Commits

Author SHA1 Message Date
github-actions[bot] 6988c337b7 chore: New release 5.7.20
Log:
2025-07-31 19:59:37 +08: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
YeShanShan 91ab817865 fix: access wild pointer for targetWindowHandle
ad title.

pms: BUG-368399
2025-01-14 10:26:51 +08:00
deepin-ci-robot 7345335cc0 chore: update changelog
Release 5.7.7.
2025-01-09 18:33:50 +08:00
deepin-ci-robot ee8238297e chore: update changelog
Release 5.7.6.
2025-01-02 06:40:48 +00:00
覃本学 d0f28c519a fix: 调整滑动条横条和刻度颜色
调整滑动条横条和刻度颜色

Log: 调整滑动条横条和刻度颜色
Bug: https://pms.uniontech.com/bug-view-254295.html
Influence: 调整滑动条横条和刻度颜色
2025-01-02 13:42:06 +08:00
renbin fb8711bdff fix: resident floating message cannot be closed
windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669
2025-01-02 01:45:32 +00:00
deepin-ci-robot 367371aac6 chore: update changelog
Release 5.7.5.
2024-12-17 09:54:39 +08:00
ck cda1bbbbcc fix: webengineView abnormal in DMainWindow
`DPlatformWindowHandle::setWindowSurfaceType(QWindow::OpenGLSurface)`
needs to be called before constructing DMainWindow when use
webengineview
2024-12-09 15:46:52 +08:00