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
qpdflink_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 QPDFLINK_P_H
5#define QPDFLINK_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 "qpdflink.h"
19
20#include <QPointF>
21#include <QRectF>
22#include <QUrl>
23
24QT_BEGIN_NAMESPACE
25
26class QPdfLinkPrivate : public QSharedData
27{
28public:
29 QPdfLinkPrivate() = default;
30 QPdfLinkPrivate(int page, QPointF location, qreal zoom)
31 : page(page),
32 location(location),
33 zoom(zoom) { }
34 QPdfLinkPrivate(int page, QList<QRectF> rects, QString contextBefore, QString contextAfter)
35 : page(page),
36 location(rects.first().topLeft()),
37 zoom(0),
38 contextBefore{std::move(contextBefore)},
39 contextAfter{std::move(contextAfter)},
40 rects{std::move(rects)} {}
41
42 int page = -1;
43 QPointF location;
44 qreal zoom = 1;
45 QString contextBefore;
46 QString contextAfter;
47 QUrl url;
48 QList<QRectF> rects;
49};
50
51QT_END_NAMESPACE
52
53#endif // QPDFLINK_P_H
Combined button and popup list for selecting options.