Commit 00db5e4
committed
feat: migrate QML plugins to Qt6 resource system
This commit transitions the control center from file-based QML plugin
loading to Qt6's resource system for better performance and deployment.
Key changes include:
1. Replaced manual file copying with qt_add_qml_module for proper QML
module management
2. Added plugin-system and plugin-device as proper subdirectories
3. Updated plugin loading logic to support both resource-based and file-
based plugins
4. Modified DCI icon theme search paths to use resource paths
5. Fixed local file paths in QML by converting them to proper file://
URLs
6. Enhanced plugin discovery with multiple path resolution strategies
The migration improves plugin loading performance, simplifies
deployment, and provides better integration with Qt6's QML module
system. It also maintains backward compatibility with existing file-
based plugins.
Log: Improved QML plugin loading performance and deployment
Influence:
1. Test control center startup and plugin loading
2. Verify all plugin modules load correctly (system, device, accounts,
etc.)
3. Check icon display in various modules
4. Test plugin navigation and functionality
5. Verify resource paths work in different deployment scenarios
6. Test backward compatibility with existing plugin configurations
feat: 迁移 QML 插件到 Qt6 资源系统
本次提交将控制中心从基于文件的 QML 插件加载迁移到 Qt6 资源系统,以获得更
好的性能和部署体验。主要变更包括:
1. 使用 qt_add_qml_module 替代手动文件复制,实现更好的 QML 模块管理
2. 添加 plugin-system 和 plugin-device 作为正式子目录
3. 更新插件加载逻辑以支持基于资源和基于文件的插件
4. 修改 DCI 图标主题搜索路径以使用资源路径
5. 通过转换为 file:// URL 修复 QML 中的本地文件路径问题
6. 增强插件发现功能,支持多种路径解析策略
此次迁移提高了插件加载性能,简化了部署流程,并提供了与 Qt6 QML 模块系统
的更好集成。同时保持了对现有基于文件的插件的向后兼容性。
Log: 提升 QML 插件加载性能和部署体验
Influence:
1. 测试控制中心启动和插件加载
2. 验证所有插件模块正确加载(系统、设备、账户等)
3. 检查各模块中的图标显示
4. 测试插件导航和功能
5. 验证资源路径在不同部署场景下的工作
6. 测试与现有插件配置的向后兼容性1 parent 04dbc56 commit 00db5e4
File tree
27 files changed
+179
-52
lines changed- misc
- src
- dde-control-center
- frame/plugin
- plugin-deepinid
- operation
- qml
- plugin-device
- qml
- plugin-personalization/operation
- plugin-privacy/operation
- plugin-system
- qml
27 files changed
+179
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
9 | 12 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | | - | |
16 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
17 | 45 | | |
| 46 | + | |
18 | 47 | | |
19 | 48 | | |
20 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
97 | | - | |
98 | 89 | | |
99 | 90 | | |
100 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | 45 | | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | | - | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
File renamed without changes.
0 commit comments