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 "contentblock.h"
8
9#include "qdoc/access.h"
10#include "qdoc/genustypes.h"
11#include "qdoc/status.h"
12
13#include <QJsonObject>
14#include <QList>
15#include <QString>
16
18
19namespace IR {
20
22{
23 // Classification
25 Genus genus { Genus::DontCare };
28
29 // Identity
30 QString title; // Page title
31 QString fullTitle; // Full qualified title
32 QString url; // Output file URL (relative)
33 QString since; // Version introduced (e.g., "6.8")
34 QString deprecatedSince; // Version deprecated (e.g., "6.5")
35 QString brief; // Brief description
36
37 // Content
40
41 QJsonObject toJson() const;
42};
43
44} // namespace IR
45
46QT_END_NAMESPACE
47
48#endif // QDOC_IR_DOCUMENT_H
Access
Definition access.h:11
Assembles IR Documents from pre-extracted metadata.
Definition builder.h:15
Builder()=default
Document buildPageIR(PageMetadata pm) const
Definition builder.cpp:59
Status
Specifies the status of the QQmlIncubator.
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:22
QList< ContentBlock > body
Definition document.h:38
QString fullTitle
Definition document.h:31
QString url
Definition document.h:32
Access access
Definition document.h:27
QString title
Definition document.h:30
QString brief
Definition document.h:35
Status status
Definition document.h:26
QJsonObject contentJson
Definition document.h:39
NodeType nodeType
Definition document.h:24
QString deprecatedSince
Definition document.h:34
QJsonObject toJson() const
Converts the Document to a QJsonObject for template rendering.
Definition document.cpp:129
QString since
Definition document.h:33
Genus genus
Definition document.h:25