QDoc: Retain the source of each template


QDoc looks for templates in a configured directory before trying its
built-in copies. Once one is loaded, the generator forgets where it
came from. That prevents later diagnostics from telling authors which
copy to inspect.

Keep the source with the loaded content while preserving the existing
choice of template and rendered output. A following change can then
identify the source of a failed render.

Task-number: QTBUG-146939
Pick-to: 6.12
Change-Id: I675fcfd4bf89a0f8fe45c01f0ec7b2c197f6a700
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commitbaa663f7bdc0401ff21e9da0433ce39a39335bcf
parent01f604668d9f973193cc2f0fe4fdfd9371dbd503
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 1 Oct 2026 13:53:20 +0000