Commit 8ba54e2
feat: add package name search configuration
1. Added new DConfig setting "searchPackage" to control package name
search functionality
2. Implemented package name search in SearchFilterProxyModel when
enabled
3. Added DConfig monitoring to dynamically update search behavior when
setting changes
4. Package name search includes exact match, starts with, and contains
matching
5. Added desktopId comparison in calculateWeight method for package
name matching
The changes allow users to enable/disable package name searching through
DConfig, providing more flexible search options. This is particularly
useful for technical users who may want to search applications by their
package names.
feat: 添加包名搜索配置功能
1. 新增 DConfig 设置项 "searchPackage" 用于控制包名搜索功能
2. 在 SearchFilterProxyModel 中实现包名搜索功能(当启用时)
3. 添加 DConfig 监听以动态更新搜索行为
4. 包名搜索支持精确匹配、开头匹配和包含匹配
5. 在 calculateWeight 方法中添加 desktopId 比较用于包名匹配
这些改动允许用户通过 DConfig 启用/禁用包名搜索功能,提供更灵活的搜索选
项。对于技术用户来说特别有用,他们可能希望通过包名来搜索应用程序。1 parent 4f45994 commit 8ba54e2
3 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| |||
29 | 44 | | |
30 | 45 | | |
31 | 46 | | |
32 | | - | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| |||
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
73 | 90 | | |
74 | 91 | | |
75 | 92 | | |
| |||
105 | 122 | | |
106 | 123 | | |
107 | 124 | | |
| 125 | + | |
108 | 126 | | |
109 | 127 | | |
110 | 128 | | |
| |||
248 | 266 | | |
249 | 267 | | |
250 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
251 | 276 | | |
252 | 277 | | |
253 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
0 commit comments