![]() |
Qt 6.x
The Qt SDK
|
#include <qpdfsearchmodel_p.h>
Classes | |
struct | PageAndIndex |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static QAbstractItemModel * | staticEmptyModel () |
static bool | variantLessThan (const QVariant &v1, const QVariant &v2) |
static const QHash< int, QByteArray > & | defaultRoleNames () |
static bool | isVariantLessThan (const QVariant &left, const QVariant &right, Qt::CaseSensitivity cs=Qt::CaseSensitive, bool isLocaleAware=false) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 25 of file qpdfsearchmodel_p.h.
QPdfSearchModelPrivate::QPdfSearchModelPrivate | ( | ) |
Definition at line 228 of file qpdfsearchmodel.cpp.
void QPdfSearchModelPrivate::clearResults | ( | ) |
Definition at line 232 of file qpdfsearchmodel.cpp.
References QList< T >::clear(), document, nextPageToUpdate, QPdfDocument::pageCount, pagesSearched, QList< T >::resize(), rowCountSoFar, searchResults, updateTimerId, and UpdateTimerInterval.
bool QPdfSearchModelPrivate::doSearch | ( | int | page | ) |
Definition at line 246 of file qpdfsearchmodel.cpp.
References Qt::CaseInsensitive, CharacterHitTolerance, context, ContextChars, QPdfDocumentPrivate::doc, document, QString::fromUtf16(), QString::isEmpty(), QList< T >::isEmpty(), QList< T >::last(), lock, page, pagesSearched, Q_ASSERT, qCDebug, qMax(), QStringLiteral, qWarning, rowCountSoFar, rowsBeforePage(), searchResults, searchString, QString::size(), QList< T >::size(), QTimer::start(), timer, and QString::utf16().
Referenced by pageAndIndexForResult().
QPdfSearchModelPrivate::PageAndIndex QPdfSearchModelPrivate::pageAndIndexForResult | ( | int | resultIndex | ) |
Definition at line 337 of file qpdfsearchmodel.cpp.
References document, doSearch(), QList< T >::isEmpty(), page, QPdfDocument::pageCount, pagesSearched, searchResults, and QList< T >::size().
int QPdfSearchModelPrivate::rowsBeforePage | ( | int | page | ) |
Definition at line 355 of file qpdfsearchmodel.cpp.
References i, page, ret, and searchResults.
Referenced by doSearch().
QPdfDocument* QPdfSearchModelPrivate::document = nullptr |
Definition at line 41 of file qpdfsearchmodel_p.h.
Referenced by clearResults(), doSearch(), and pageAndIndexForResult().
QMetaObject::Connection QPdfSearchModelPrivate::documentConnection |
Definition at line 49 of file qpdfsearchmodel_p.h.
int QPdfSearchModelPrivate::nextPageToUpdate = 0 |
Definition at line 47 of file qpdfsearchmodel_p.h.
Referenced by clearResults().
QList<bool> QPdfSearchModelPrivate::pagesSearched |
Definition at line 43 of file qpdfsearchmodel_p.h.
Referenced by clearResults(), doSearch(), and pageAndIndexForResult().
int QPdfSearchModelPrivate::rowCountSoFar = 0 |
Definition at line 45 of file qpdfsearchmodel_p.h.
Referenced by clearResults(), and doSearch().
Definition at line 44 of file qpdfsearchmodel_p.h.
Referenced by clearResults(), doSearch(), pageAndIndexForResult(), and rowsBeforePage().
QString QPdfSearchModelPrivate::searchString |
Definition at line 42 of file qpdfsearchmodel_p.h.
Referenced by doSearch().
int QPdfSearchModelPrivate::updateTimerId = -1 |
Definition at line 46 of file qpdfsearchmodel_p.h.
Referenced by clearResults().