![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkCompleter.h>


Public Types | |
| enum | ModelFiltering { FilterStartsWith =0 , FilterContains , FilterWordStartsWith } |
Public Member Functions | |
| ctkCompleter (const QStringList &list, QObject *parent=0) | |
| ctkCompleter (QAbstractItemModel *model, QObject *parent=0) | |
| ctkCompleter (QObject *parent=0) | |
| ModelFiltering | modelFiltering () const |
| void | setModelFiltering (ModelFiltering filter) |
| void | setSourceModel (QAbstractItemModel *model) |
| QAbstractItemModel * | sourceModel () const |
| virtual QStringList | splitPath (const QString &s) const |
| virtual | ~ctkCompleter () |
Protected Attributes | |
| QScopedPointer< ctkCompleterPrivate > | d_ptr |
Properties | |
| ModelFiltering | modelFiltering |
ctkCompleter is a QCompleter that allows different way of filtering the model, not just by filtering strings that start with the
Definition at line 52 of file ctkCompleter.h.
| Enumerator | |
|---|---|
| FilterStartsWith | |
| FilterContains | |
| FilterWordStartsWith | |
Definition at line 71 of file ctkCompleter.h.
| ctkCompleter::ctkCompleter | ( | QObject * | parent = 0 | ) |
| ctkCompleter::ctkCompleter | ( | QAbstractItemModel * | model, |
| QObject * | parent = 0 |
||
| ) |
| ctkCompleter::ctkCompleter | ( | const QStringList & | list, |
| QObject * | parent = 0 |
||
| ) |
|
virtual |
| ModelFiltering ctkCompleter::modelFiltering | ( | ) | const |
| void ctkCompleter::setModelFiltering | ( | ModelFiltering | filter | ) |
| void ctkCompleter::setSourceModel | ( | QAbstractItemModel * | model | ) |
| QAbstractItemModel* ctkCompleter::sourceModel | ( | ) | const |
ctkCompleter::model() might return a filtered model (QSortFilterAbstractModel) different from the one that was set. QCompleter::setModel should not be used and setSourceModel used instead.
|
virtual |
|
protected |
Definition at line 91 of file ctkCompleter.h.
|
readwrite |
FilterStartsWith is the default behavior (same as QCompleter).The completer filters out strings that don't start with
Definition at line 1 of file ctkCompleter.h.