itom 2.2.0
|
#include <completer.h>
Public Types | |
enum | ModelFiltering { FilterStartsWith = 0, FilterContains, FilterWordStartsWith } |
Public Member Functions | |
Completer (QObject *parent=0) | |
Completer (QAbstractItemModel *model, QObject *parent=0) | |
Completer (const QStringList &list, QObject *parent=0) | |
ModelFiltering | modelFiltering () const |
void | setModelFiltering (ModelFiltering filter) |
virtual QStringList | splitPath (const QString &s) const |
QAbstractItemModel * | sourceModel () const |
void | setSourceModel (QAbstractItemModel *model) |
Protected Attributes | |
QScopedPointer< CompleterPrivate > | d_ptr |
Properties | |
ModelFiltering | modelFiltering |
Private Member Functions | |
Q_DECLARE_PRIVATE (Completer) | |
Q_DISABLE_COPY (Completer) |
Completer is a QCompleter that allows different way of filtering the model, not just by filtering strings that start with the
QAbstractItemModel * Completer::sourceModel | ( | ) | const |
Completer::model() might return a filtered model (QSortFilterAbstractModel) different from the one that was set. QCompleter::setModel should not be used and setSourceModel used instead.
Completer::ModelFiltering Completer::modelFiltering [read, write] |
FilterStartsWith is the default behavior (same as QCompleter).The completer filters out strings that don't start with