Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
document.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QDOC_IR_DOCUMENT_H
5#define QDOC_IR_DOCUMENT_H
6
7#include "../access.h"
8#include "../genustypes.h"
9#include "../status.h"
10
11#include <QJsonObject>
12#include <QString>
13
15
16namespace IR {
17
19{
20 // Classification
22 Genus genus { Genus::DontCare };
25
26 // Identity
27 QString title; // Page title
28 QString fullTitle; // Full qualified title
29 QString url; // Output file URL (relative)
30 QString since; // Version introduced (e.g., "6.8")
31 QString deprecatedSince; // Version deprecated (e.g., "6.5")
32 QString brief; // Brief description
33
34 // Content
35 QJsonObject contentJson; // Content as JSON (for template rendering)
36
37 QJsonObject toJson() const;
38};
39
40} // namespace IR
41
42QT_END_NAMESPACE
43
44#endif // QDOC_IR_DOCUMENT_H
Access
Definition access.h:11
The Atom class is the fundamental unit for representing documents internally.
Definition atom.h:19
AtomType type() const
Return the type of this atom.
Definition atom.h:153
@ BriefRight
Definition atom.h:27
@ String
Definition atom.h:93
@ BriefLeft
Definition atom.h:26
@ C
Definition atom.h:28
@ AutoLink
Definition atom.h:23
const Atom * next() const
Return the next atom in the atom list.
Definition atom.h:150
Builds IR (Intermediate Representation) from QDoc's Node tree.
Definition builder.h:16
Document buildPageIR(const PageNode *pn) const
Definition builder.cpp:66
Builder()=default
A PageNode is a Node that generates a documentation page.
Definition pagenode.h:19
Status
Specifies the status of the QQmlIncubator.
Definition text.h:12
const Atom * firstAtom() const
Definition text.h:34
NodeType
Definition genustypes.h:150
Definition builder.cpp:14
Combined button and popup list for selecting options.
@ Public
Definition access.h:11
@ Active
Definition status.h:14
Intermediate representation for a documentation topic.
Definition document.h:19
QString fullTitle
Definition document.h:28
QString url
Definition document.h:29
Access access
Definition document.h:24
QString title
Definition document.h:27
QString brief
Definition document.h:32
Status status
Definition document.h:23
QJsonObject contentJson
Definition document.h:35
NodeType nodeType
Definition document.h:21
QString deprecatedSince
Definition document.h:31
QJsonObject toJson() const
Converts the Document to a QJsonObject for template rendering.
Definition document.cpp:128
QString since
Definition document.h:30
Genus genus
Definition document.h:22
const Doc & doc() const
Returns a reference to the node's Doc data member.
Definition node.h:235
NodeType nodeType() const override
Returns this node's type.
Definition node.h:82
Genus genus() const override
Returns this node's Genus.
Definition node.h:85
virtual Status status() const
Returns the node's status value.
Definition node.h:239
Access access() const
Returns the node's Access setting, which can be Public, Protected, or Private.
Definition node.h:228