QDoc: Honor empty template overrides


A template author can leave an override empty to suppress generated
markup. QDoc instead falls back to its built-in page template and
reports an empty included partial as missing. The same file therefore
has different effects depending on where it is used.

An existing override now wins even when it has no content. A missing
override still falls back to the built-in template, while a genuinely
missing include still reports an error. Authors can intentionally
render nothing without hiding absent files.

Fixes: QTBUG-151053
Pick-to: 6.12
Change-Id: I27ca342da7ab1fdf36beb06e2ef9c84f6073f3a5
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commita364e37558b043e36f908d2fd6d202579a80cfdc
parent4ccd7d5d8925d6d1350cdda1297768e22f45a146
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 1 Oct 2026 13:53:45 +0000