QDoc: Move Generator::typeString into NodeText::


`Generator::typeString()` is a virtual method on Generator that isn't
overridden anywhere and that doesn't rely on Generator's state. Thus, it
shouldn't be `virtual`; also, it should be either static or live
somewhere else.

In preparation for a change that will make use of the function from
`NodeExtractor`, move the function into a new namespace,
`NodeText`. Update all call sites.

Pick-to: 6.12
Task-number: QTBUG-151328
Change-Id: I6cc75d6e678a44c42f60ed1727b790481faaa07b
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit156b3f23a4db3e4159075a7f4ef1ec105a314d32
parent8fec5cf010d950e62a235b71ad73c1692970c7f6
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 12 Oct 2026 15:43:25 +0000