[vlc-devel] [vlc-commits] Qt: PLModel: try to agregate inserts for efficiency

Francois Cartegnie fcvlcdev at free.fr
Fri Jun 8 11:08:38 CEST 2012

Le 08/06/2012 10:34, Ilkka Ollakka a écrit :
> I think removing currentIndexChanged() broke the scrolling of current
> item in playlistview. Atleast for me the tree-playlist views don't work
> anymore when depth is over 2 levels (eg playlist->musicdirectory->albumdirectory->file)
> Are you sure the flickering doesn't come forexample use of layoutChanged()
> or dataChanged() signaling?

dataChanged is emitted on each insert, with coordinates of the change.
I've tried just merging changes at that level (min(topleft),
max(bottomright)), but that doesn't solved the problem.
scheduleDelayedItemsLayout() as well.

The currentIndexChanged() is still emitted at the end of the inserts.
I'll have to make a test case.


More information about the vlc-devel mailing list