QtHelp: Fix the build without texthtmlparser


QTextDocument::setHtml() is only available with the texthtmlparser
feature. Guard its calls in QHelpGlobal::documentTitle() and in the
search index writer. Without the html parser, the document title is
returned as-is and html files are not indexed.

Fixes: QTBUG-136339
Pick-to: 6.12 6.8
Change-Id: I6149b6e5d577429584519a639667dc377187bc06
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
commitc34bafe2df3c3a1860cdc3b9ed120b9493ff428e
parent2e552879ae34398dea60f211582f6d799811f735
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeTue, 29 Sep 2026 07:38:14 +0000