QDoc: Suppress empty CMake and qmake requisites on module pages


Module pages render a requisites table with rows for CMake
usage, qmake usage, and similar build-system hints. Each field
is emitted unconditionally even when the documenter has not
provided a value, so a module page without CMake metadata ships
markup such as `find_package( REQUIRED COMPONENTS )` and
`QT += `, advertising a build snippet whose package, component,
and variable are all empty strings. Readers landing on a module
page for a project that does not document its build variables
see a table that contributes nothing useful and looks broken.

Module pages now omit each requisites row when its underlying
field is empty, and omit the table entirely when no row has
content to render. A module that declares only a qmake variable
shows the qmake row and skips the CMake row; a module that
declares neither shows neither.

Task-number: QTBUG-146601
Change-Id: I98cb9584595f98dfd2052ea6068ad26e8cef7ce2
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitaa004822a3679aa2b12107dd4bdd5b75b5bee7dd
parentca8ffbc3b5cef82f93afbdb3018a28677f40ebc9
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 7 May 2026 09:20:48 +0000