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版本的兼容性
DHiDPIHelper has nothing to do with dtkwidget. Move the only function
loadNxPixmap to Dtk::Gui::DIcon. Deprecate the implementation in
dtkwidget.
Log: deprecate dhidpihelper
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
1. add obsolete interfaces about acknowledgement
2. remove redundant code about acknowledgement
Log: remove redundant code about acknowledgement in daboutdialog
Add interface updateDialogSettingInfo, apps can update print dialog
settings at construction time.
Add docs and UT, fix a bug that may cause a memory leak.
Log: DPrintPreviewDialog add update setting interface.
Influence: Add update setting interface.
This is a supplement for 9b6e608005
It's default assignment constructor will call buillt
dtkwidget's `dciIcon` conftructor, but `dciIcon` object is a
unassignment space, it causes app crashed.
obsolete old interface sidebarVisible due to spelling mistake
Log: rename sidebarVisble to sidebarVisible
Influence: sidebar
Change-Id: I7c932f4fc8f43db2271d3562d446b4f663e11ad4
when no feature item is added, hide the entrance in about daboutdialog
Log: fix the issue about feature dialog has no content
Influence: feature display
Change-Id: Id13ce0b84ede3d084f219cfbd35e1d2a94e3b4bc
* remove redundant "dtkwidget" in include directory;
* improve cmake, modify some variable names, use file() to collect
source files for scalability;
* add full target_link_libraries support.
Log: add full target_link_libraries support
Influence: all projects who include headers directly by path
Modify dstyle's value when switch SizeMode;
Add compact support for dialog, listview and other base widget.
Log: 支持基本控件的紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I8f83d1fddd723a51bd01561c3723a9c352e9d852
Send StyleChange event for all widget when
received sizemode changed.
Add SizeModeHelper for common function.
Modify radius, Shadow of MainWindow.
Log: 支持紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I3cb83d22db1b3b058ed34443263d8321af09281d
Modify default value for m_style of DStyleHelper from nullptr to
QApplication::style in case we have a stack overflow.
Log: correct default constructor for DStyleHelper
Implements the DImageViewer interface, including rotate, scale, gesture.
Add unit test cases and interface comment.
Log: Implements DImageViewer rotate, scale and gesture.
Implements the DImageViewer interface, including set image and clear.
And implements the DGraphicsitem classes, add unit test cases, update comment.
Log: Implements DImageViewer set image and clear.