Commit e0f6910
committed
fix: remove redundant palette setup in RoundScrollArea
1. Removed unnecessary palette initialization in constructor that was
setting window brush to transparent
2. Changed paintEvent to directly use Qt::transparent instead of
palette().window()
3. This simplifies the code while maintaining the same visual effect
of transparency
4. The palette setup was redundant since we're manually painting the
background anyway
fix: 移除RoundScrollArea中多余的调色板设置
1. 移除构造函数中不必要的调色板初始化(将窗口画刷设置为透明)
2. 修改paintEvent直接使用Qt::transparent替代palette().window()
3. 在保持相同透明视觉效果的同时简化了代码
4. 调色板设置是多余的,因为我们已经手动绘制背景
Pms: bug-3155351 parent 731f05a commit e0f6910
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
0 commit comments