QAdvanced Item View
0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
|
The QFilterModel class provides a default implementation of a filter model. More...
#include <qfiltermodel.h>
Public Member Functions | |
QFilterModel (QObject *parent) | |
~QFilterModel () | |
Public Member Functions inherited from QAbstractFilterModel | |
QAbstractFilterModel (QObject *parent=0) | |
~QAbstractFilterModel () | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
QFilterGroup * | filterGroup (const QModelIndex &index) const |
QFilterGroup * | groupAt (int row) const |
QAbstractFilter * | filter (const QModelIndex &index) const |
QIcon | filterDisabledIcon () const |
QIcon | filterEnabledIcon () const |
QList< QAbstractFilter * > | filtersAtRow (int row) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
QAdvancedItemViews::FilterMatchMode | matchMode () const |
QAdvancedItemViews::FilterProxyMode | mode () const |
QModelIndex | parent (const QModelIndex &index) const |
QList< FilterTypeEntry > | registeredFilterTypes () const |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | setDefaultFilterType (int column, int type) |
void | setFilterDisabledIcon (const QIcon &icon) |
void | setFilterEnabledIcon (const QIcon &icon) |
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
void | setMatchMode (QAdvancedItemViews::FilterMatchMode flag) |
void | setMode (QAdvancedItemViews::FilterProxyMode mode) |
void | setSourceModel (QAbstractItemModel *model) |
QAbstractItemModel * | sourceModel () const |
Protected Member Functions | |
QAbstractFilter * | createFilter (const QModelIndex &index, const QVariantMap &properties) const |
Protected Member Functions inherited from QAbstractFilterModel | |
bool | registerFilter (int type, const QString &text, const QString &toolTip=QString()) |
bool | registerFilter (int type, const QIcon &icon, const QString &text, const QString &toolTip=QString()) |
Additional Inherited Members | |
Public Types inherited from QAbstractFilterModel | |
enum | ItemDataRole { ValueFilterTypeRole = Qt::UserRole + 42, DefaultFilterTypeRole, ColumnFilterTypesRole } |
Signals inherited from QAbstractFilterModel | |
void | matchModeChanged (QAdvancedItemViews::FilterMatchMode mode) |
void | modeChanged (QAdvancedItemViews::FilterProxyMode mode) |
The QFilterModel class provides a default implementation of a filter model.
The following filters are provided by QDefaultFilterModel:
QFilterModel::QFilterModel | ( | QObject * | parent | ) |
Constructs a default filter model with the given parent
.
QFilterModel::~QFilterModel | ( | ) |
Destroys the default filter model.
|
protectedvirtual |
QAbstractFilterModel::createFilter()
Implements QAbstractFilterModel.