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
QSortedModelEngine Class Reference

#include <qcompleter_p.h>

Inheritance diagram for QSortedModelEngine:
Collaboration diagram for QSortedModelEngine:

Public Member Functions

 QSortedModelEngine (QCompleterPrivate *c)
QMatchData filter (const QString &, const QModelIndex &, int) override
QIndexMapper indexHint (QString, const QModelIndex &, Qt::SortOrder)
Qt::SortOrder sortOrder (const QModelIndex &) const
Public Member Functions inherited from QCompletionEngine
 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)
int matchCount () const

Additional Inherited Members

Public Types inherited from QCompletionEngine
typedef QMap< QString, QMatchDataCacheItem
typedef QMap< QModelIndex, CacheItemCache
Public Attributes inherited from QCompletionEngine
QMatchData curMatch
QMatchData historyMatch
QCompleterPrivatec
QStringList curParts
QModelIndex curParent
int curRow
Cache cache
int cost

Detailed Description

Definition at line 144 of file qcompleter_p.h.

Constructor & Destructor Documentation

◆ QSortedModelEngine()

QSortedModelEngine::QSortedModelEngine ( QCompleterPrivate * c)
inline

Definition at line 147 of file qcompleter_p.h.

References QCompletionEngine::QCompletionEngine().

Here is the call graph for this function:

Member Function Documentation

◆ filter()

QMatchData QSortedModelEngine::filter ( const QString & part,
const QModelIndex & parent,
int  )
overridevirtual

Implements QCompletionEngine.

Definition at line 596 of file qcompleter.cpp.

References QMatchData::QMatchData(), QCompletionEngine::c, QCompleterPrivate::column, QIndexMapper::from(), QMatchData::isValid(), QCompleterPrivate::proxy, QCompleterPrivate::role, and QIndexMapper::to().

Here is the call graph for this function:

◆ indexHint()

QIndexMapper QSortedModelEngine::indexHint ( QString part,
const QModelIndex & parent,
Qt::SortOrder order )

Definition at line 540 of file qcompleter.cpp.

References QIndexMapper::QIndexMapper(), QCompletionEngine::c, QCompletionEngine::cache, QMatchData::isValid(), and QCompleterPrivate::proxy.

Here is the call graph for this function:

◆ sortOrder()

Qt::SortOrder QSortedModelEngine::sortOrder ( const QModelIndex & parent) const

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