Commit deec269
committed
chore: update license info handling and add default loading
1. Updated copyright year range from 2023 to 2023-2026 in header
2. Replaced DObject include with QObject for better compatibility
3. Added loadDefault() and clear() public methods to DLicenseInfo class
4. Enhanced license content search to use QStandardPaths for cross-
platform compatibility
5. Added support for both system licenses (/usr/share/spdx-licenses) and
custom licenses
6. Implemented automatic loading of application-specific license config
from standard data locations
7. Improved error handling with clearer warning messages
Log: Improved license information management with better path handling
and default configuration loading
chore: 更新许可证信息处理并添加默认加载功能
1. 将头文件中的版权年份范围从2023更新为2023-2026
2. 将DObject引用替换为QObject以提高兼容性
3. 为DLicenseInfo类添加了loadDefault()和clear()公共方法
4. 使用QStandardPaths增强许可证内容搜索,提高跨平台兼容性
5. 添加了对系统许可证(/usr/share/spdx-licenses)和自定义许可证的支持
6. 实现了从标准数据位置自动加载应用程序特定的许可证配置
7. 改进了错误处理,提供更清晰的警告信息
Log: 改进了许可证信息管理,提供更好的路径处理和默认配置加载功能
PMS: TASK-3878631 parent 3e34c88 commit deec269
2 files changed
Lines changed: 31 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
93 | 110 | | |
94 | 111 | | |
95 | 112 | | |
| |||
141 | 158 | | |
142 | 159 | | |
143 | 160 | | |
144 | | - | |
145 | | - | |
| 161 | + | |
| 162 | + | |
146 | 163 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
160 | 173 | | |
161 | | - | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
| |||
0 commit comments