![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcompleter_p.h>
Public Types | |
typedef QMap< QString, QMatchData > | CacheItem |
typedef QMap< QModelIndex, CacheItem > | Cache |
Public Member Functions | |
QCompletionEngine (QCompleterPrivate *c) | |
virtual | ~QCompletionEngine () |
void | filter (const QStringList &parts) |
QMatchData | filterHistory () |
bool | matchHint (const QString &part, const QModelIndex &parent, QMatchData *m) const |
void | saveInCache (QString, const QModelIndex &, const QMatchData &) |
bool | lookupCache (const QString &part, const QModelIndex &parent, QMatchData *m) const |
virtual void | filterOnDemand (int) |
virtual QMatchData | filter (const QString &, const QModelIndex &, int)=0 |
int | matchCount () const |
Public Attributes | |
QMatchData | curMatch |
QMatchData | historyMatch |
QCompleterPrivate * | c |
QStringList | curParts |
QModelIndex | curParent |
int | curRow |
Cache | cache |
int | cost |
Definition at line 112 of file qcompleter_p.h.
typedef QMap<QModelIndex, CacheItem> QCompletionEngine::Cache |
Definition at line 116 of file qcompleter_p.h.
typedef QMap<QString, QMatchData> QCompletionEngine::CacheItem |
Definition at line 115 of file qcompleter_p.h.
|
inline |
Definition at line 118 of file qcompleter_p.h.
References c, cost, and curRow.
Referenced by QSortedModelEngine::QSortedModelEngine(), and QUnsortedModelEngine::QUnsortedModelEngine().
|
inlinevirtual |
Definition at line 119 of file qcompleter_p.h.
|
pure virtual |
Implemented in QSortedModelEngine, and QUnsortedModelEngine.
void QCompletionEngine::filter | ( | const QStringList & | parts | ) |
Definition at line 397 of file qcompleter.cpp.
References c, QCompleterPrivate::column, curRow, and QCompleterPrivate::proxy.
QMatchData QCompletionEngine::filterHistory | ( | ) |
Definition at line 431 of file qcompleter.cpp.
References QMatchData::QMatchData(), QMatchData::QMatchData(), c, QCompleterPrivate::column, and QCompleterPrivate::proxy.
|
inlinevirtual |
Reimplemented in QUnsortedModelEngine.
Definition at line 129 of file qcompleter_p.h.
bool QCompletionEngine::lookupCache | ( | const QString & | part, |
const QModelIndex & | parent, | ||
QMatchData * | m ) const |
Definition at line 486 of file qcompleter.cpp.
References cache.
|
inline |
Definition at line 132 of file qcompleter_p.h.
Referenced by QUnsortedModelEngine::filterOnDemand().
bool QCompletionEngine::matchHint | ( | const QString & | part, |
const QModelIndex & | parent, | ||
QMatchData * | m ) const |
Definition at line 460 of file qcompleter.cpp.
References cache.
void QCompletionEngine::saveInCache | ( | QString | part, |
const QModelIndex & | parent, | ||
const QMatchData & | m ) |
Definition at line 508 of file qcompleter.cpp.
QCompleterPrivate* QCompletionEngine::c |
Definition at line 135 of file qcompleter_p.h.
Referenced by QCompletionEngine(), filter(), QSortedModelEngine::filter(), QUnsortedModelEngine::filter(), filterHistory(), QUnsortedModelEngine::filterOnDemand(), QSortedModelEngine::indexHint(), and QSortedModelEngine::sortOrder().
Cache QCompletionEngine::cache |
Definition at line 140 of file qcompleter_p.h.
Referenced by QSortedModelEngine::indexHint(), lookupCache(), matchHint(), and saveInCache().
int QCompletionEngine::cost |
Definition at line 141 of file qcompleter_p.h.
Referenced by QCompletionEngine(), and saveInCache().
QMatchData QCompletionEngine::curMatch |
Definition at line 134 of file qcompleter_p.h.
QModelIndex QCompletionEngine::curParent |
Definition at line 137 of file qcompleter_p.h.
QStringList QCompletionEngine::curParts |
Definition at line 136 of file qcompleter_p.h.
int QCompletionEngine::curRow |
Definition at line 138 of file qcompleter_p.h.
Referenced by QCompletionEngine(), and filter().
QMatchData QCompletionEngine::historyMatch |
Definition at line 134 of file qcompleter_p.h.