1 | // Copyright (C) 2020 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef TEXTBUILDER_H |
5 | #define TEXTBUILDER_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include "uilib_global.h" |
19 | #include <QtCore/qlist.h> |
20 | #include <QtCore/qstring.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QDir; |
25 | class QVariant; |
26 | |
27 | #ifdef QFORMINTERNAL_NAMESPACE |
28 | namespace QFormInternal |
29 | { |
30 | #endif |
31 | |
32 | class DomProperty; |
33 | class DomString; |
34 | |
35 | class QDESIGNER_UILIB_EXPORT QTextBuilder |
36 | { |
37 | public: |
38 | QTextBuilder(); |
39 | virtual ~QTextBuilder(); |
40 | |
41 | virtual QVariant loadText(const DomProperty *property) const; |
42 | |
43 | virtual QVariant toNativeValue(const QVariant &value) const; |
44 | |
45 | virtual DomProperty *saveText(const QVariant &value) const; |
46 | }; |
47 | |
48 | |
49 | #ifdef QFORMINTERNAL_NAMESPACE |
50 | } |
51 | #endif |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // TEXTBUILDER_H |
56 | |