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

source code of qtdeclarative/src/quick/items/qquicktextdocument.h