Qt
6.x
The Qt SDK
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
24
QT_BEGIN_NAMESPACE
25
26
class
QPdfLinkPrivate
:
public
QSharedData
27
{
28
public
:
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
51
QT_END_NAMESPACE
52
53
#endif
// QPDFLINK_P_H
QList
Definition
qlist.h:74
QPdfLinkPrivate
Definition
qpdflink_p.h:27
QPdfLinkPrivate::url
QUrl url
Definition
qpdflink_p.h:47
QPdfLinkPrivate::zoom
qreal zoom
Definition
qpdflink_p.h:44
QPdfLinkPrivate::QPdfLinkPrivate
QPdfLinkPrivate()=default
QPdfLinkPrivate::rects
QList< QRectF > rects
Definition
qpdflink_p.h:48
QPdfLinkPrivate::contextBefore
QString contextBefore
Definition
qpdflink_p.h:45
QPdfLinkPrivate::contextAfter
QString contextAfter
Definition
qpdflink_p.h:46
QPdfLinkPrivate::QPdfLinkPrivate
QPdfLinkPrivate(int page, QPointF location, qreal zoom)
Definition
qpdflink_p.h:30
QPdfLinkPrivate::location
QPointF location
Definition
qpdflink_p.h:43
QPdfLinkPrivate::page
int page
Definition
qpdflink_p.h:42
QPdfLinkPrivate::QPdfLinkPrivate
QPdfLinkPrivate(int page, QList< QRectF > rects, QString contextBefore, QString contextAfter)
Definition
qpdflink_p.h:34
QPointF
\inmodule QtCore\reentrant
Definition
qpoint.h:214
QSharedData
\inmodule QtCore
Definition
qshareddata.h:19
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QUrl
\inmodule QtCore
Definition
qurl.h:94
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
std
Definition
qfloat16.h:456
location
GLint location
Definition
qopengles2ext.h:207
first
GLint first
Definition
qopengles2ext.h:913
qpdflink.h
qreal
double qreal
Definition
qtypes.h:92
qtwebengine
src
pdf
qpdflink_p.h
Generated by
1.9.7