QtQml: Pass the alias target object index when creating aliases


We already know the index of the target object when resolving an alias.
There is no need to look it up again by id in the named objects table of
the component. The named objects table is going to move, and this way we
don't have to deal with it here.

Once we pass the target object index, the component is not needed
anymore. Drop the parameter.

Task-number: QTBUG-147816
Change-Id: If8a1e7d106b40ad771a8359f39c0e3cf06873c51
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit5c096a1c4f6fffe136a2e8b56d99914dfca324ee
parentd74620f8ba0e55fa1ed1f7318628298436664c35
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeThu, 15 Oct 2026 17:34:52 +0000