Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
23
QT_BEGIN_NAMESPACE
24
25
class
QPdfSearchModelPrivate
:
public
QAbstractItemModelPrivate
26
{
27
Q_DECLARE_PUBLIC(QPdfSearchModel)
28
29
public
:
30
QPdfSearchModelPrivate
();
31
void
clearResults
();
32
bool
doSearch
(
int
page);
33
34
struct
PageAndIndex
{
35
int
page
;
36
int
index
;
37
};
38
QString
matchedText
(
const
PageAndIndex
&pi)
const
;
39
PageAndIndex
pageAndIndexForResult
(
int
resultIndex);
40
int
rowsBeforePage
(
int
page);
41
void
setStatus
(QPdfSearchModel::Status s);
42
43
QPdfDocument
*
document
=
nullptr
;
44
QString
searchString
;
45
QList
<
bool
>
pagesSearched
;
46
QList
<
QList
<
QPdfLink
>>
searchResults
;
47
int
rowCountSoFar
= 0;
48
int
nextPageToUpdate
= 0;
49
Qt
::
TimerId
updateTimerId
=
Qt
::
TimerId
::
Invalid
;
50
QPdfSearchModel
::
Status
status
=
QPdfSearchModel
::
Status
::
Null
;
51
52
QMetaObject
::
Connection
documentConnection
;
53
};
54
55
QT_END_NAMESPACE
56
57
#
endif
// QPDFSEARCHMODEL_P_H
QPdfSearchModelPrivate
Definition
qpdfsearchmodel_p.h:26
QPdfSearchModelPrivate::matchedText
QString matchedText(const PageAndIndex &pi) const
Definition
qpdfsearchmodel.cpp:385
QPdfSearchModelPrivate::doSearch
bool doSearch(int page)
Definition
qpdfsearchmodel.cpp:297
QPdfSearchModelPrivate::rowCountSoFar
int rowCountSoFar
Definition
qpdfsearchmodel_p.h:47
QPdfSearchModelPrivate::updateTimerId
Qt::TimerId updateTimerId
Definition
qpdfsearchmodel_p.h:49
QPdfSearchModelPrivate::clearResults
void clearResults()
Definition
qpdfsearchmodel.cpp:272
QPdfSearchModelPrivate::rowsBeforePage
int rowsBeforePage(int page)
Definition
qpdfsearchmodel.cpp:408
QPdfSearchModelPrivate::setStatus
void setStatus(QPdfSearchModel::Status s)
Definition
qpdfsearchmodel.cpp:416
QPdfSearchModelPrivate::nextPageToUpdate
int nextPageToUpdate
Definition
qpdfsearchmodel_p.h:48
QPdfSearchModelPrivate::document
QPdfDocument * document
Definition
qpdfsearchmodel_p.h:43
QPdfSearchModelPrivate::documentConnection
QMetaObject::Connection documentConnection
Definition
qpdfsearchmodel_p.h:52
QPdfSearchModelPrivate::pagesSearched
QList< bool > pagesSearched
Definition
qpdfsearchmodel_p.h:45
QPdfSearchModelPrivate::pageAndIndexForResult
PageAndIndex pageAndIndexForResult(int resultIndex)
Definition
qpdfsearchmodel.cpp:390
QPdfSearchModelPrivate::searchString
QString searchString
Definition
qpdfsearchmodel_p.h:44
QPdfSearchModelPrivate::searchResults
QList< QList< QPdfLink > > searchResults
Definition
qpdfsearchmodel_p.h:46
QPdfSearchModel
The QPdfSearchModel class searches for a string in a PDF document and holds the results.
Definition
qpdfsearchmodel.h:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
ContextChars
static const int ContextChars
Definition
qpdfsearchmodel.cpp:22
Q_PDF_LOGGING_CATEGORY
#define Q_PDF_LOGGING_CATEGORY(name,...)
Definition
qtpdfglobal_p.h:29
QPdfSearchModelPrivate::PageAndIndex
Definition
qpdfsearchmodel_p.h:34
QPdfSearchModelPrivate::PageAndIndex::index
int index
Definition
qpdfsearchmodel_p.h:36
QPdfSearchModelPrivate::PageAndIndex::page
int page
Definition
qpdfsearchmodel_p.h:35
qtwebengine
src
pdf
qpdfsearchmodel_p.h
Generated on
for Qt by
1.18.0