QDoc: Compute nonfunctionList() on each call


Aggregate::nonfunctionList() lazily builds and caches a filtered, sorted
copy of the child list on first call. The memoization hides the
computation inside an accessor that looks suspiciously like a plain
getter, and the missing const forces a `const_cast` on the receiver in
`TagFileWriter`.

Make the method const and have it compute and return a fresh sorted copy
on each call, and drop the cached member. At the existing call sites,
the node tree has been fully resolved and the properties used by
`Node::nodeLessThan` are stable, so the returned ordering is identical
to the previously cached result. There is no output change.

Call sites take the list by value, which makes the ownership of
the copy explicit, and `TagFileWriter` can call the method without a
cast.

Task-number: QTBUG-150880
Change-Id: Ica1e01f5e8310c1283c73205089379f5dbec89aa
Reviewed-by: David Boddie <david.boddie@qt.io>
commit1f0a17d4a88316ada3d619a6d21d1753a37f57df
parentcff41040fa1fdc4c1cd957a7bf3e8d2ea23505c4
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeSun, 27 Sep 2026 18:28:14 +0000