![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <document.h>
Classes | |
| struct | BreadcrumbEntry |
| struct | LinkEntry |
| struct | TocEntry |
Public Types | |
| enum class | CrumbState { Link , Current , Unresolved } |
Public Member Functions | |
| QJsonObject | toJson () const |
| Converts NavigationInfo to a QJsonObject for template rendering. | |
Public Attributes | |
| QList< BreadcrumbEntry > | breadcrumbs |
| std::optional< LinkEntry > | previousLink |
| std::optional< LinkEntry > | nextLink |
| std::optional< LinkEntry > | startLink |
| QList< TocEntry > | tocEntries |
| int | tocDepth { -1 } |
Definition at line 161 of file document.h.
|
strong |
| Enumerator | |
|---|---|
| Link | |
| Current | |
| Unresolved | |
Definition at line 163 of file document.h.
|
nodiscard |
Converts NavigationInfo to a QJsonObject for template rendering.
The breadcrumbs and tocEntries arrays are always emitted (empty when none exist) so templates can iterate without guards. Each breadcrumb carries a state discriminator (link, current, or unresolved) so templates can distinguish a resolvable link, the current page, and an unresolvable ancestor without conflating them through an empty href. Sequential link objects (prevLink, nextLink, startLink) are conditionally emitted only when set. The tocDepth integer is always emitted ({-1} means unlimited depth).
Definition at line 291 of file document.cpp.
| QList<BreadcrumbEntry> IR::NavigationInfo::breadcrumbs |
Definition at line 186 of file document.h.
| std::optional<LinkEntry> IR::NavigationInfo::nextLink |
Definition at line 188 of file document.h.
| std::optional<LinkEntry> IR::NavigationInfo::previousLink |
Definition at line 187 of file document.h.
| std::optional<LinkEntry> IR::NavigationInfo::startLink |
Definition at line 189 of file document.h.
| int IR::NavigationInfo::tocDepth { -1 } |
Definition at line 191 of file document.h.
Referenced by IR::Builder::buildPageIR().
Definition at line 190 of file document.h.