QDoc: Add a prepend function to SharedCommentNode for future use


This will be useful when shared comment nodes are reconstructed from
index files.

Add checks to ensure nodes in shared comments have a common genus type.

Change-Id: I9c0ac5ed53f6c18f0156a390eb649cc427354ede
Reviewed-by: David Boddie <david.boddie@qt.io>
commitccc018b81b46b3f48a24d1b9d57636a39de0b900
parent03fde7daf50c2827923f8d07099f8a661a5dfe3e
authorDavid Boddie <david.boddie@qt.io>
committerDavid Boddie <david.boddie@qt.io>
commit timeThu, 26 Feb 2026 14:08:40 +0100