4#ifndef QQUICKPDFSEARCHMODEL_P_H
5#define QQUICKPDFSEARCHMODEL_P_H
18#include <QtPdfQuick/private/qtpdfquickglobal_p.h>
19#include <QtPdfQuick/private/qquickpdfdocument_p.h>
21#include <QtPdf/qpdfsearchmodel.h>
22#include <QtQml/QQmlEngine>
30 Q_PROPERTY(
int currentPage READ currentPage WRITE setCurrentPage NOTIFY currentPageChanged)
31 Q_PROPERTY(
int currentResult READ currentResult WRITE setCurrentResult NOTIFY currentResultChanged)
33 Q_PROPERTY(
QList<
QPolygonF> currentPageBoundingPolygons READ currentPageBoundingPolygons NOTIFY currentPageBoundingPolygonsChanged)
34 Q_PROPERTY(
QList<
QPolygonF> currentResultBoundingPolygons READ currentResultBoundingPolygons NOTIFY currentResultBoundingPolygonsChanged)
35 Q_PROPERTY(
QRectF currentResultBoundingRect READ currentResultBoundingRect NOTIFY currentResultBoundingRectChanged)
48 int currentPage()
const {
return m_currentPage; }
49 void setCurrentPage(
int currentPage);
52 void setCurrentResult(
int currentResult);
55 QList<QPolygonF> currentPageBoundingPolygons()
const;
56 QList<QPolygonF> currentResultBoundingPolygons()
const;
57 QRectF currentResultBoundingRect()
const;
69 void onResultsChanged();
73 int m_currentPage = 0;
74 int m_currentResult = 0;
75 bool m_suspendSignals =
false;
The QPdfLink class defines a link between a region on a page (such as a hyperlink or a search result)...
The QPdfSearchModel class searches for a string in a PDF document and holds the results.
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document,...
The QPolygonF class provides a list of points using floating point precision.
void currentResultChanged()
int currentResult() const
void currentResultLinkChanged()
void currentResultBoundingPolygonsChanged()
void currentResultBoundingRectChanged()
void currentPageBoundingPolygonsChanged()
void currentPageChanged()
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
#define QML_DECLARE_TYPE(TYPE)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PDFQUICK_EXPORT