Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCompletionEngine Class Referenceabstract

#include <qcompleter_p.h>

Inheritance diagram for QCompletionEngine:
Collaboration diagram for QCompletionEngine:

Public Types

typedef QMap< QString, QMatchDataCacheItem
typedef QMap< QModelIndex, CacheItemCache

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
QCompleterPrivatec
QStringList curParts
QModelIndex curParent
int curRow
Cache cache
int cost

Detailed Description

Definition at line 112 of file qcompleter_p.h.

Member Typedef Documentation

◆ Cache

Definition at line 116 of file qcompleter_p.h.

◆ CacheItem

Definition at line 115 of file qcompleter_p.h.

Constructor & Destructor Documentation

◆ QCompletionEngine()

QCompletionEngine::QCompletionEngine ( QCompleterPrivate * c)
inline

Definition at line 118 of file qcompleter_p.h.

References c, cost, and curRow.

Referenced by QSortedModelEngine::QSortedModelEngine(), and QUnsortedModelEngine::QUnsortedModelEngine().

Here is the caller graph for this function:

◆ ~QCompletionEngine()

virtual QCompletionEngine::~QCompletionEngine ( )
inlinevirtual

Definition at line 119 of file qcompleter_p.h.

Member Function Documentation

◆ filter() [1/2]

virtual QMatchData QCompletionEngine::filter ( const QString & ,
const QModelIndex & ,
int  )
pure virtual

◆ filter() [2/2]

void QCompletionEngine::filter ( const QStringList & parts)

Definition at line 397 of file qcompleter.cpp.

References c, QCompleterPrivate::column, curRow, and QCompleterPrivate::proxy.

◆ filterHistory()

QMatchData QCompletionEngine::filterHistory ( )

Definition at line 431 of file qcompleter.cpp.

References QMatchData::QMatchData(), QMatchData::QMatchData(), c, QCompleterPrivate::column, and QCompleterPrivate::proxy.

Here is the call graph for this function:

◆ filterOnDemand()

virtual void QCompletionEngine::filterOnDemand ( int )
inlinevirtual

Reimplemented in QUnsortedModelEngine.

Definition at line 129 of file qcompleter_p.h.

◆ lookupCache()

bool QCompletionEngine::lookupCache ( const QString & part,
const QModelIndex & parent,
QMatchData * m ) const

Definition at line 486 of file qcompleter.cpp.

References cache.

◆ matchCount()

int QCompletionEngine::matchCount ( ) const
inline

Definition at line 132 of file qcompleter_p.h.

Referenced by QUnsortedModelEngine::filterOnDemand().

Here is the caller graph for this function:

◆ matchHint()

bool QCompletionEngine::matchHint ( const QString & part,
const QModelIndex & parent,
QMatchData * m ) const

Definition at line 460 of file qcompleter.cpp.

References cache.

◆ saveInCache()

void QCompletionEngine::saveInCache ( QString part,
const QModelIndex & parent,
const QMatchData & m )

Definition at line 508 of file qcompleter.cpp.

References cache, and cost.

Member Data Documentation

◆ c

◆ cache

Cache QCompletionEngine::cache

Definition at line 140 of file qcompleter_p.h.

Referenced by QSortedModelEngine::indexHint(), lookupCache(), matchHint(), and saveInCache().

◆ cost

int QCompletionEngine::cost

Definition at line 141 of file qcompleter_p.h.

Referenced by QCompletionEngine(), and saveInCache().

◆ curMatch

QMatchData QCompletionEngine::curMatch

Definition at line 134 of file qcompleter_p.h.

◆ curParent

QModelIndex QCompletionEngine::curParent

Definition at line 137 of file qcompleter_p.h.

◆ curParts

QStringList QCompletionEngine::curParts

Definition at line 136 of file qcompleter_p.h.

◆ curRow

int QCompletionEngine::curRow

Definition at line 138 of file qcompleter_p.h.

Referenced by QCompletionEngine(), and filter().

◆ historyMatch

QMatchData QCompletionEngine::historyMatch

Definition at line 134 of file qcompleter_p.h.


The documentation for this class was generated from the following files: