Quick inspector: Correctly update item tree flags.

Now flags are updated recursively for all children, if the position of
an item changes.