1 | // Copyright (C) 2021 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | #include "docprivate.h" |
4 | |
5 | #include "text.h" |
6 | |
7 | #include <QtCore/qhash.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | /*! |
12 | Deletes the DocPrivateExtra. |
13 | */ |
14 | DocPrivate::~DocPrivate() |
15 | { |
16 | delete extra; |
17 | } |
18 | |
19 | void DocPrivate::addAlso(const Text &also) |
20 | { |
21 | m_alsoList.append(t: also); |
22 | } |
23 | |
24 | void DocPrivate::constructExtra() |
25 | { |
26 | if (extra == nullptr) |
27 | extra = new DocPrivateExtra; |
28 | } |
29 | |
30 | QT_END_NAMESPACE |
31 |