Skip to content

PanelView: make floating panel more efficient

Fushan Wen requested to merge work/fuf/483680 into master

When floatingness is changed by QML Animation, updateFloating() is called 13 times, and updateMask() is called at least 37 times, but some parts of updateFloating() don't need to be called more than once. By moving the animation to PanelView, PanelView doesn't need to subscribe to floatingness changes in QML, instead the floatingness property is modified by QPropertyAnimation in PanelView, which prevents some potentially expensive operations from being called many times when the floating state changes once.

BUG: 483680 FIXED-IN: 6.1

@niccolove @mart

Requires plasma-desktop!2126 (merged)

Edited by Fushan Wen

Merge request reports