Definition at line 61 of file qsortfilterproxymodel.h.
#include <qsortfilterproxymodel.h>

Public Slots |
|
| void | setFilterRegExp (const QString &pattern) |
| void | setFilterWildcard (const QString &pattern) |
| void | setFilterFixedString (const QString &pattern) |
| void | clear () |
| void | invalidate () |
Public Member Functions |
|
| QSortFilterProxyModel (QObject *parent=0) | |
| ~QSortFilterProxyModel () | |
| void | setSourceModel (QAbstractItemModel *sourceModel) |
| QModelIndex | mapToSource (const QModelIndex &proxyIndex) const |
| QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const |
| QItemSelection | mapSelectionToSource (const QItemSelection &proxySelection) const |
| QItemSelection | mapSelectionFromSource (const QItemSelection &sourceSelection) const |
| QRegExp | filterRegExp () const |
| void | setFilterRegExp (const QRegExp ®Exp) |
| int | filterKeyColumn () const |
| void | setFilterKeyColumn (int column) |
| Qt::CaseSensitivity | filterCaseSensitivity () const |
| void | setFilterCaseSensitivity (Qt::CaseSensitivity cs) |
| Qt::CaseSensitivity | sortCaseSensitivity () const |
| void | setSortCaseSensitivity (Qt::CaseSensitivity cs) |
| bool | isSortLocaleAware () const |
| void | setSortLocaleAware (bool on) |
| int | sortColumn () const |
| Qt::SortOrder | sortOrder () const |
| bool | dynamicSortFilter () const |
| void | setDynamicSortFilter (bool enable) |
| int | sortRole () const |
| void | setSortRole (int role) |
| int | filterRole () const |
| void | setFilterRole (int role) |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &child) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| bool | insertColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| bool | removeColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
| void | fetchMore (const QModelIndex &parent) |
| bool | canFetchMore (const QModelIndex &parent) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| QModelIndex | buddy (const QModelIndex &index) const |
| QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const |
| QSize | span (const QModelIndex &index) const |
| void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) |
| QStringList | mimeTypes () const |
| Qt::DropActions | supportedDropActions () const |
Protected Member Functions |
|
| virtual bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const |
| virtual bool | filterAcceptsColumn (int source_column, const QModelIndex &source_parent) const |
| virtual bool | lessThan (const QModelIndex &left, const QModelIndex &right) const |
| void | filterChanged () |
| void | invalidateFilter () |
Properties |
|
| QRegExp | filterRegExp |
| int | filterKeyColumn |
| bool | dynamicSortFilter |
| Qt::CaseSensitivity | filterCaseSensitivity |
| Qt::CaseSensitivity | sortCaseSensitivity |
| bool | isSortLocaleAware |
| int | sortRole |
| int | filterRole |
Friends |
|
| class | QSortFilterProxyModelLessThan |
| class | QSortFilterProxyModelGreaterThan |
| QSortFilterProxyModel | ( | QObject * | parent = 0 |
) |
| void setSourceModel | ( | QAbstractItemModel * | sourceModel | ) | [virtual] |
Reimplemented from QAbstractProxyModel.
| QModelIndex mapToSource | ( | const QModelIndex & | proxyIndex | ) | const [virtual] |
Implements QAbstractProxyModel.
| QModelIndex mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const [virtual] |
Implements QAbstractProxyModel.
| QItemSelection mapSelectionToSource | ( | const QItemSelection & | proxySelection | ) | const [virtual] |
Reimplemented from QAbstractProxyModel.
| QItemSelection mapSelectionFromSource | ( | const QItemSelection & | sourceSelection | ) | const [virtual] |
Reimplemented from QAbstractProxyModel.
| QRegExp filterRegExp | ( | ) | const |
| void setFilterRegExp | ( | const QRegExp & | regExp | ) |
| int filterKeyColumn | ( | ) | const |
| void setFilterKeyColumn | ( | int | column | ) |
| Qt::CaseSensitivity filterCaseSensitivity | ( | ) | const |
| void setFilterCaseSensitivity | ( | Qt::CaseSensitivity | cs | ) |
| Qt::CaseSensitivity sortCaseSensitivity | ( | ) | const |
| void setSortCaseSensitivity | ( | Qt::CaseSensitivity | cs | ) |
| bool isSortLocaleAware | ( | ) | const |
| void setSortLocaleAware | ( | bool | on | ) |
| int sortColumn | ( | ) | const |
| Qt::SortOrder sortOrder | ( | ) | const |
| bool dynamicSortFilter | ( | ) | const |
| void setDynamicSortFilter | ( | bool | enable | ) |
| int sortRole | ( | ) | const |
| void setSortRole | ( | int | role | ) |
| int filterRole | ( | ) | const |
| void setFilterRole | ( | int | role | ) |
| void setFilterRegExp | ( | const QString & | pattern | ) | [slot] |
| void setFilterWildcard | ( | const QString & | pattern | ) | [slot] |
| void setFilterFixedString | ( | const QString & | pattern | ) | [slot] |
| void clear | ( | ) | [slot] |
| void invalidate | ( | ) | [slot] |
| virtual bool filterAcceptsRow | ( | int | source_row, |
| const QModelIndex & | source_parent | ||
| ) | const [protected, virtual] |
| virtual bool filterAcceptsColumn | ( | int | source_column, |
| const QModelIndex & | source_parent | ||
| ) | const [protected, virtual] |
| virtual bool lessThan | ( | const QModelIndex & | left, |
| const QModelIndex & | right | ||
| ) | const [protected, virtual] |
| void filterChanged | ( | ) | [protected] |
| void invalidateFilter | ( | ) | [protected] |
| QModelIndex index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const [virtual] |
Implements QAbstractItemModel.
| QModelIndex parent | ( | const QModelIndex & | child | ) | const [virtual] |
Implements QAbstractItemModel.
| int rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| int columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| bool hasChildren | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Reimplemented from QAbstractItemModel.
| QVariant data | ( | const QModelIndex & | index, |
| int | role =
Qt::DisplayRole |
||
| ) | const [virtual] |
Reimplemented from QAbstractProxyModel.
| bool setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role =
Qt::EditRole |
||
| ) | [virtual] |
Reimplemented from QAbstractProxyModel.
| QVariant headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role =
Qt::DisplayRole |
||
| ) | const [virtual] |
Reimplemented from QAbstractProxyModel.
| bool setHeaderData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| const QVariant & | value, | ||
| int | role =
Qt::EditRole |
||
| ) | [virtual] |
Reimplemented from QAbstractProxyModel.
| QMimeData* mimeData | ( | const QModelIndexList & | indexes | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| bool dropMimeData | ( | const QMimeData * | data, |
| Qt::DropAction | action, | ||
| int | row, | ||
| int | column, | ||
| const QModelIndex & | parent | ||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| bool insertRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| bool insertColumns | ( | int | column, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| bool removeRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| bool removeColumns | ( | int | column, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| void fetchMore | ( | const QModelIndex & | parent | ) | [virtual] |
Reimplemented from QAbstractItemModel.
| bool canFetchMore | ( | const QModelIndex & | parent | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| Qt::ItemFlags flags | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented from QAbstractProxyModel.
| QModelIndex buddy | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| QModelIndexList match | ( | const QModelIndex & | start, |
| int | role, | ||
| const QVariant & | value, | ||
| int | hits = 1, |
||
| Qt::MatchFlags | flags =
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap) |
||
| ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| QSize span | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| void sort | ( | int | column, |
| Qt::SortOrder | order =
Qt::AscendingOrder |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| QStringList mimeTypes | ( | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| Qt::DropActions supportedDropActions | ( | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
friend class QSortFilterProxyModelLessThan
[friend] |
Definition at line 63 of file qsortfilterproxymodel.h.
friend class QSortFilterProxyModelGreaterThan
[friend] |
Definition at line 64 of file qsortfilterproxymodel.h.
QRegExp filterRegExp [read,
write] |
Definition at line 67 of file qsortfilterproxymodel.h.
int filterKeyColumn [read,
write] |
Definition at line 68 of file qsortfilterproxymodel.h.
bool dynamicSortFilter [read,
write] |
Definition at line 69 of file qsortfilterproxymodel.h.
Qt::CaseSensitivity
filterCaseSensitivity [read, write] |
Definition at line 70 of file qsortfilterproxymodel.h.
Qt::CaseSensitivity
sortCaseSensitivity [read, write] |
Definition at line 71 of file qsortfilterproxymodel.h.
bool isSortLocaleAware [read,
write] |
Definition at line 72 of file qsortfilterproxymodel.h.
int sortRole [read, write] |
Definition at line 73 of file qsortfilterproxymodel.h.
int filterRole [read, write] |
Definition at line 74 of file qsortfilterproxymodel.h.