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
qquickpdfpagenavigator_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 QQUICKPDFPAGENAVIGATOR_P_H
5#define QQUICKPDFPAGENAVIGATOR_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 <QtPdf/qpdfpagenavigator.h>
20#include <QtPdf/private/qpdflink_p.h>
21
22#include <QQmlEngine>
23
25
27{
28 Q_GADGET
29 QML_FOREIGN(QPdfLink)
30 QML_VALUE_TYPE(pdfLink)
31 QML_ADDED_IN_VERSION(6, 4)
32};
33
34class Q_PDFQUICK_EXPORT QQuickPdfPageNavigator : public QObject
35{
36 Q_OBJECT
37 QML_EXTENDED(QPdfPageNavigator)
38 QML_NAMED_ELEMENT(PdfPageNavigator)
39 QML_ADDED_IN_VERSION(5, 15)
40
41public:
42 explicit QQuickPdfPageNavigator(QObject *parent = nullptr);
43 ~QQuickPdfPageNavigator() override;
44
45private:
46 QPdfPageNavigator *navStack();
47
48 Q_DISABLE_COPY(QQuickPdfPageNavigator)
49};
50
51QT_END_NAMESPACE
52
53QML_DECLARE_TYPE(QQuickPdfPageNavigator)
54
55#endif // QQUICKPDFPAGENAVIGATOR_P_H