QDoc: Simplify noexcept note generation


The noexcept note generator has nested conditionals and converts
member positions through std::string, making its existing numbering
harder to follow. Use a range-for with an explicit position counter
and QString, counting even members without a noexcept note.

Pick-to: 6.12
Task-number: QTBUG-151328
Change-Id: Iadb36c365d7e9dc51b1a9ac51f74a8639d300265
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit2c5a4bbc3acd09482dfcba53b74c3cbf5f9df894
parent2c39a3f229cfd0361140c47af705f906e2c0d897
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 12 Oct 2026 15:43:25 +0000