Qt 4.8
|
#include <qcompleter_p.h>
Public Types | |
typedef QMap< QModelIndex, CacheItem > | Cache |
typedef QMap< QString, QMatchData > | CacheItem |
Public Functions | |
void | filter (const QStringList &parts) |
virtual QMatchData | filter (const QString &, const QModelIndex &, int)=0 |
QMatchData | filterHistory () |
virtual void | filterOnDemand (int) |
bool | lookupCache (QString part, const QModelIndex &parent, QMatchData *m) |
int | matchCount () const |
bool | matchHint (QString, const QModelIndex &, QMatchData *) |
QCompletionEngine (QCompleterPrivate *c) | |
void | saveInCache (QString, const QModelIndex &, const QMatchData &) |
virtual | ~QCompletionEngine () |
Public Variables | |
QCompleterPrivate * | c |
Cache | cache |
int | cost |
QMatchData | curMatch |
QModelIndex | curParent |
QStringList | curParts |
int | curRow |
QMatchData | historyMatch |
Definition at line 141 of file qcompleter_p.h.
typedef QMap<QModelIndex, CacheItem> QCompletionEngine::Cache |
Definition at line 145 of file qcompleter_p.h.
typedef QMap<QString, QMatchData> QCompletionEngine::CacheItem |
Definition at line 144 of file qcompleter_p.h.
|
inline |
Definition at line 147 of file qcompleter_p.h.
|
inlinevirtual |
Definition at line 148 of file qcompleter_p.h.
void QCompletionEngine::filter | ( | const QStringList & | parts | ) |
Definition at line 438 of file qcompleter.cpp.
Referenced by QCompletionModel::filter().
|
pure virtual |
Implemented in QUnsortedModelEngine, and QSortedModelEngine.
QMatchData QCompletionEngine::filterHistory | ( | ) |
Definition at line 472 of file qcompleter.cpp.
|
inlinevirtual |
Reimplemented in QUnsortedModelEngine.
Definition at line 158 of file qcompleter_p.h.
Referenced by QCompletionModel::completionCount(), QCompletionModel::index(), QCompletionModel::mapFromSource(), and QCompletionModel::setCurrentRow().
bool QCompletionEngine::lookupCache | ( | QString | part, |
const QModelIndex & | parent, | ||
QMatchData * | m | ||
) |
Definition at line 523 of file qcompleter.cpp.
|
inline |
Definition at line 161 of file qcompleter_p.h.
Referenced by QCompleterPrivate::_q_complete(), QCompletionModel::completionCount(), QCompletionModel::currentIndex(), QCompletionModel::hasChildren(), QCompletionModel::index(), QCompletionModel::mapFromSource(), QCompletionModel::mapToSource(), QCompletionModel::rowCount(), and QCompletionModel::setCurrentRow().
bool QCompletionEngine::matchHint | ( | QString | part, |
const QModelIndex & | parent, | ||
QMatchData * | hint | ||
) |
Definition at line 504 of file qcompleter.cpp.
void QCompletionEngine::saveInCache | ( | QString | part, |
const QModelIndex & | parent, | ||
const QMatchData & | m | ||
) |
Definition at line 535 of file qcompleter.cpp.
QCompleterPrivate* QCompletionEngine::c |
Definition at line 164 of file qcompleter_p.h.
Cache QCompletionEngine::cache |
Definition at line 169 of file qcompleter_p.h.
Referenced by QCompletionModel::invalidate().
int QCompletionEngine::cost |
Definition at line 170 of file qcompleter_p.h.
QMatchData QCompletionEngine::curMatch |
Definition at line 163 of file qcompleter_p.h.
Referenced by QCompletionModel::currentIndex(), QCompletionModel::mapFromSource(), and QCompletionModel::mapToSource().
QModelIndex QCompletionEngine::curParent |
Definition at line 166 of file qcompleter_p.h.
Referenced by QCompletionModel::filter(), QCompletionModel::index(), QCompletionModel::mapFromSource(), QCompletionModel::mapToSource(), and QCompletionModel::rowCount().
QStringList QCompletionEngine::curParts |
Definition at line 165 of file qcompleter_p.h.
Referenced by QCompletionModel::invalidate(), and QCompletionModel::rowCount().
int QCompletionEngine::curRow |
Definition at line 167 of file qcompleter_p.h.
Referenced by QCompletionModel::currentIndex(), and QCompletionModel::setCurrentRow().
QMatchData QCompletionEngine::historyMatch |
Definition at line 163 of file qcompleter_p.h.
Referenced by QCompletionModel::index(), QCompletionModel::mapFromSource(), and QCompletionModel::mapToSource().