QtHelp: Reject keywords referencing unknown files


When reading a help file, a keyword referencing a file id that
doesn't belong to any of its files was made to reference its first
file. When registering, the file ids of the keywords weren't checked
either, so an out-of-range id made the keyword reference a file of
other, previously registered documentation.

Mark an unknown file id as invalid when reading, and refuse to
register documentation containing keywords with file ids outside of
its own files.

Task-number: QTBUG-150688
Pick-to: 6.12
Change-Id: I217032b3d15b0d57967b430f58481ebe91de5949
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
commitb47fab96086af180a806445b13ce1cb38eeb4330
parent405493a9b7a4b2a204be8bd16ca21cf9e8167f13
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeFri, 2 Oct 2026 15:19:26 +0000