Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpdfsearchmodel_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 QPDFSEARCHMODEL_P_H
5#define QPDFSEARCHMODEL_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 "qpdfsearchmodel.h"
19#include <private/qabstractitemmodel_p.h>
20
21#include "third_party/pdfium/public/fpdfview.h"
22
24
26{
27 Q_DECLARE_PUBLIC(QPdfSearchModel)
28
29public:
31 void clearResults();
32 bool doSearch(int page);
33
34 struct PageAndIndex {
35 int page;
36 int index;
37 };
38 PageAndIndex pageAndIndexForResult(int resultIndex);
39 int rowsBeforePage(int page);
40
43 QList<bool> pagesSearched;
44 QList<QList<QPdfLink>> searchResults;
46 int updateTimerId = -1;
48
50};
51
53
54#endif // QPDFSEARCHMODEL_P_H
\inmodule QtCore Represents a handle to a signal-slot (or signal-functor) connection.
The QPdfDocument class loads a PDF document and renders pages from it.
QMetaObject::Connection documentConnection
PageAndIndex pageAndIndexForResult(int resultIndex)
QList< QList< QPdfLink > > searchResults
The QPdfSearchModel class searches for a string in a PDF document and holds the results.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QByteArray page
[45]