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
qquickpdflinkmodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QQUICKPDFLINKMODEL_P_H
5#define QQUICKPDFLINKMODEL_P_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 <QtPdfQuick/private/qtpdfquickglobal_p.h>
19#include <QtPdfQuick/private/qquickpdfdocument_p.h>
20#include <QtPdf/private/qpdflinkmodel_p.h>
21
22#include <QtQml/QQmlEngine>
23
25
26class Q_PDFQUICK_EXPORT QQuickPdfLinkModel : public QPdfLinkModel
27{
28 Q_OBJECT
29 Q_PROPERTY(QQuickPdfDocument *document READ document WRITE setDocument NOTIFY documentChanged)
30 QML_NAMED_ELEMENT(PdfLinkModel)
31 QML_ADDED_IN_VERSION(5, 15)
32
33public:
34 explicit QQuickPdfLinkModel(QObject *parent = nullptr);
35 ~QQuickPdfLinkModel() override;
36
37 QQuickPdfDocument *document() const;
38 void setDocument(QQuickPdfDocument *document);
39
40private:
41 QQuickPdfDocument *m_quickDocument;
42 Q_DISABLE_COPY(QQuickPdfLinkModel)
43};
44
45QT_END_NAMESPACE
46
47QML_DECLARE_TYPE(QQuickPdfLinkModel)
48
49#endif // QQUICKPDFLINKMODEL_P_H