45 #include <QtCore/qobject.h> 46 #include <QtCore/qpoint.h> 47 #include <QtCore/qstring.h> 48 #include <QtCore/qabstractitemmodel.h> 49 #include <QtCore/qrect.h> 57 #ifndef QT_NO_COMPLETER 86 CaseInsensitivelySortedModel
91 #ifndef QT_NO_STRINGLISTMODEL 114 void setCompletionColumn(
int column);
115 int completionColumn()
const;
117 void setCompletionRole(
int role);
118 int completionRole()
const;
120 bool wrapAround()
const;
122 int maxVisibleItems()
const;
123 void setMaxVisibleItems(
int maxItems);
125 int completionCount()
const;
126 bool setCurrentRow(
int row);
127 int currentRow()
const;
130 QString currentCompletion()
const;
134 QString completionPrefix()
const;
137 void setCompletionPrefix(
const QString &prefix);
139 void setWrapAround(
bool wrap);
165 #endif // QT_NO_COMPLETER 171 #endif // QCOMPLETER_H CompletionMode
This enum specifies how completions are provided to the user.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
int completionColumn
the column in the model in which completions are searched for.
The QCompleter class provides completions based on an item model.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
CompletionMode completionMode
how the completions are provided to the user
ModelSorting
This enum specifies how the items in the model are sorted.
Qt::CaseSensitivity caseSensitivity
the case sensitivity of the matching
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
int completionRole
the item role to be used to query the contents of items for matching.
virtual bool eventFilter(QObject *, QEvent *)
Filters events if this object has been installed as an event filter for the watched object...
int maxVisibleItems
the maximum allowed size on screen of the completer, measured in items
The QAbstractItemModel class provides the abstract interface for item model classes.
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting...
bool wrapAround
the completions wrap around when navigating through items
The QAbstractItemView class provides the basic functionality for item view classes.
QString completionPrefix
the completion prefix used to provide completions.
The QItemSelection class manages information about selected items in a model.
The QModelIndex class is used to locate data in a data model.
The QRect class defines a rectangle in the plane using integer precision.
ModelSorting modelSorting
the way the model is sorted
#define Q_DECLARE_PRIVATE(Class)
The QEvent class is the base class of all event classes.