Commit 6ba8fbf
fix: reset view position on category type change
1. Added Connections in AppListView.qml to reset list position when
category type changes
2. Modified CategorizedSortProxyModel.cpp to properly emit signals and
reset model
3. Now emits categoryTypeChanged after model reset and sorting completes
4. Ensures consistent view behavior when switching between different
category types
fix: 类别类型更改时重置视图位置
1. 在 AppListView.qml 中添加连接,当类别类型改变时重置列表位置
2. 修改 CategorizedSortProxyModel.cpp 以正确发出信号并重置模型
3. 现在在模型重置和排序完成后发出 categoryTypeChanged 信号
4. 确保在不同类别类型之间切换时视图行为一致
Pms: BUG-3227711 parent 2286b66 commit 6ba8fbf
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
364 | 371 | | |
365 | 372 | | |
366 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
0 commit comments