qml: fix positioning glitches and artifacts when items are added in playlist
Qt has number of bugs that hinder using transitions properly. The worst one seems to be add displaced, which causes items to have incorrect positions, where it is not possible to recover from that situation.
Transition in general causes visual glitches (independent of positioning), but it seems to be possible to recover from that by adjusting the viewport in an undetectable way.
This can be observed when there are 2-3 items in the playlist, and when a large number, such as 30 items are inserted at the beginning of the playlist.
Instead of disabling the transitions altogether, I propose to:
- Clear the artifact on items after items are added.
- Disable add displaced transition, as it is not possible to recover from incorrectly positioned delegate once it occurs. Keep move and remove displaced transition
Tested on Qt 6.2, 6.8.
Request review @chub.