Commit 20e648f
committed
feat: add icon scaling with keyboard shortcuts
1. Added icon scaling functionality with Ctrl++/Ctrl+= to zoom in and
Ctrl+- to zoom out
2. Implemented smooth scaling animation with 200ms duration and easing
3. Set scaling limits between 0.5x and 1.0x with 0.1x step increments
4. Updated IconItemDelegate to support iconScaleFactor property for
consistent scaling
5. Added transformOrigin: Item.Center to maintain icon positioning
during scaling
feat: 添加图标缩放功能和键盘快捷键
1. 添加图标缩放功能,支持 Ctrl++/Ctrl+= 放大和 Ctrl+- 缩小
2. 实现平滑缩放动画,持续时间为200毫秒并带有缓动效果
3. 设置缩放限制在0.5倍到1.0倍之间,每次调整0.1倍
4. 更新IconItemDelegate以支持iconScaleFactor属性,确保缩放一致性
5. 添加transformOrigin: Item.Center以在缩放过程中保持图标定位
Pms: BUG-2895291 parent fd7f19a commit 20e648f
2 files changed
Lines changed: 37 additions & 2 deletions
| 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 | + | |
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
| |||
75 | 85 | | |
76 | 86 | | |
77 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
78 | 108 | | |
79 | 109 | | |
80 | 110 | | |
| |||
490 | 520 | | |
491 | 521 | | |
492 | 522 | | |
| 523 | + | |
| 524 | + | |
493 | 525 | | |
494 | 526 | | |
495 | 527 | | |
| |||
562 | 594 | | |
563 | 595 | | |
564 | 596 | | |
| 597 | + | |
| 598 | + | |
565 | 599 | | |
566 | 600 | | |
567 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
0 commit comments