Commit 135014f
committed
fix: resolve Qt6 compilation warnings and deprecations
1. Added conditional compilation for Qt5/Qt6 compatibility
2. Replaced deprecated qAsConst with std::as_const for Qt6
3. Added D_IGNORE_DEPRECATIONS flag to suppress deprecation warnings
4. Fixed static_assert removal in dbackdropnode.cpp
5. Added missing Q_UNUSED macro in dquickimageprovider.cpp
6. Cleaned up initialization syntax in dquickwindow_p.h
7. Fixed platform check from IsTreelandPlatform to IsWaylandPlatform
8. Improved memory management in AppLoaderSimulator destructor
Influence:
1. Verify application builds successfully with both Qt5 and Qt6
2. Test high DPI functionality on both Qt versions
3. Validate blur effects and window management features
4. Check all QML components render correctly
5. Test palette and color selector functionality
6. Verify shadow provider image generation
7. Test settings container and group visibility
fix: 解决Qt6编译警告和废弃API问题
1. 添加Qt5/Qt6兼容性条件编译
2. 将废弃的qAsConst替换为std::as_const(Qt6)
3. 添加D_IGNORE_DEPRECATIONS标志抑制废弃API警告
4. 修复dbackdropnode.cpp中移除的static_assert
5. 在dquickimageprovider.cpp中添加缺失的Q_UNUSED宏
6. 清理dquickwindow_p.h中的初始化语法
7. 将平台检查从IsTreelandPlatform修正为IsWaylandPlatform
8. 改进AppLoaderSimulator析构函数的内存管理
Influence:
1. 验证应用在Qt5和Qt6下都能成功构建
2. 测试两个Qt版本下的高DPI功能
3. 验证模糊效果和窗口管理功能
4. 检查所有QML组件是否正确渲染
5. 测试调色板和颜色选择器功能
6. 验证阴影提供者图像生成
7. 测试设置容器和组可见性1 parent baff951 commit 135014f
13 files changed
Lines changed: 103 additions & 18 deletions
File tree
- examples
- exhibition
- qml-inspect
- qt6/src
- src
- private
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
436 | 440 | | |
437 | 441 | | |
438 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
439 | 446 | | |
| 447 | + | |
440 | 448 | | |
441 | 449 | | |
442 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
229 | 233 | | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
247 | 255 | | |
| 256 | + | |
248 | 257 | | |
249 | 258 | | |
250 | 259 | | |
| |||
343 | 352 | | |
344 | 353 | | |
345 | 354 | | |
346 | | - | |
| 355 | + | |
347 | 356 | | |
348 | 357 | | |
349 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
828 | 827 | | |
829 | 828 | | |
830 | 829 | | |
831 | | - | |
832 | 830 | | |
833 | 831 | | |
834 | 832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
347 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
| |||
1028 | 1032 | | |
1029 | 1033 | | |
1030 | 1034 | | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1031 | 1038 | | |
| 1039 | + | |
1032 | 1040 | | |
1033 | 1041 | | |
1034 | 1042 | | |
| |||
1040 | 1048 | | |
1041 | 1049 | | |
1042 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1043 | 1054 | | |
| 1055 | + | |
1044 | 1056 | | |
1045 | 1057 | | |
1046 | 1058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments