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
qpdfselection_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QPDFSELECTION_P_H
5#define QPDFSELECTION_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 "qpdfselection.h"
19
20#include <QList>
21#include <QPolygonF>
22
23QT_BEGIN_NAMESPACE
24
25class QPdfSelectionPrivate : public QSharedData
26{
27public:
28 QPdfSelectionPrivate() = default;
29 QPdfSelectionPrivate(const QString &text, QList<QPolygonF> bounds, QRectF boundingRect, int startIndex, int endIndex)
30 : text(text),
31 bounds(bounds),
32 boundingRect(boundingRect),
33 startIndex(startIndex),
34 endIndex(endIndex) { }
35
36 QString text;
37 QList<QPolygonF> bounds;
38 QRectF boundingRect;
39 int startIndex;
40 int endIndex;
41};
42
44
45#endif // QPDFSELECTION_P_H
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document,...
Q_PDF_EXPORT int startIndex() const
Q_PDF_EXPORT int endIndex() const
Combined button and popup list for selecting options.