4#ifndef QPDFSEARCHMODEL_H
5#define QPDFSEARCHMODEL_H
7#include <QtPdf/qtpdfglobal.h>
9#include <QtCore/qabstractitemmodel.h>
10#include <QtPdf/qpdfdocument.h>
11#include <QtPdf/qpdflink.h>
21 Q_PROPERTY(
QString searchString READ searchString WRITE setSearchString NOTIFY searchStringChanged)
48 void setSearchString(
const QString &searchString);
56 void updatePage(
int page);
58 void onDocumentPageCountChanged(
int count);
virtual Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
virtual QHash< int, QByteArray > roleNames() const
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QPdfDocument class loads a PDF document and renders pages from it.
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.
void searchStringChanged()
Role
\value Page The page number where the search result is found (int).
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent