Commit Graph

7 Commits

Author SHA1 Message Date
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
ck 13505358b6 feat: move ddesktopservices to dtkgui
move ddesktopservices from dtkwidget to dtkgui

Issue: linuxdeepin/dtk#134
2023-11-28 13:40:36 +08:00
wangyixue 63cb178bc7 chore: deprecate dhidpihelper
DHiDPIHelper has nothing to do with dtkwidget. Move the only function
loadNxPixmap to Dtk::Gui::DIcon. Deprecate the implementation in
dtkwidget.

Log: deprecate dhidpihelper
2023-07-27 13:47:42 +08:00
heyuming eb5e0f0a11 refactor!: deprecate some interfaces in dtk6
Log: 在dtk6中废弃一些接口
2023-07-04 18:26:14 +08:00
YeShanShan 7692c1572e feat: Deprecate DApplicationSettings
The feature has been moved to DGuiApplicationHelper in the
commit 19492cbfb71954a4939028b37ce66981d34e324e
2023-04-24 13:58:34 +08:00
ssk-wh 92573ab37e feat: 增加覆盖指定界面的水印类DWaterMarkHelper
可通过DWaterMarkHelper的接口设置水印样式,并通过registerWidget添加水印

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-243575.html
Change-Id: I84cf4d3fb0eb17deb0ab9c2e7b154bf884167a0b
2023-04-03 10:10:47 +08:00
wangyixue d6b55d4121 refactor(cmake): improve cmake and add new feature
* 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
2023-01-18 11:22:46 +08:00