QDoc: Fix wildcard matching for 'excludefiles' configuration variable


Wildcard patterns in excludefiles were converted to regular expressions
using anchored matching by default, so a pattern such as '*excluded*'
would only match if the entire filename equaled the pattern — not if the
pattern appeared anywhere within the name.

Switch to QRegularExpression::UnanchoredWildcardConversion so that
patterns match anywhere within the filename, consistent with the
documented behavior.

Pick-to: 6.12
Fixes: QTBUG-147136
Change-Id: Ida1bd3fbcc63b4121074cc80cdabe4edcf1d9c2c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commit77450bf7c0a25be4817282d6f62a0f09be25b8d4
parentf673c1d9acf2dd3383bf78e1cfc56e1cbd8ed8c6
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeThu, 9 Jul 2026 20:22:05 +0000