1 | // Copyright (C) 2016 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 QQUICKTEXTDOCUMENT_H |
5 | #define QQUICKTEXTDOCUMENT_H |
6 | |
7 | #include <QtGui/QTextDocument> |
8 | #include <QtQuick/QQuickItem> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QQuickTextDocumentPrivate; |
13 | class Q_QUICK_EXPORT QQuickTextDocument : public QObject |
14 | { |
15 | Q_OBJECT |
16 | QML_ANONYMOUS |
17 | QML_ADDED_IN_VERSION(2, 0) |
18 | |
19 | public: |
20 | QQuickTextDocument(QQuickItem *parent); |
21 | QTextDocument *textDocument() const; |
22 | |
23 | private: |
24 | Q_DISABLE_COPY(QQuickTextDocument) |
25 | Q_DECLARE_PRIVATE(QQuickTextDocument) |
26 | }; |
27 | |
28 | QT_END_NAMESPACE |
29 | |
30 | QML_DECLARE_TYPE(QQuickTextDocument) |
31 | |
32 | #endif |
33 |