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 QFilterGroup class groups filter definitions. More...
#include <qfiltergroup.h>
Public Member Functions | |
QFilterGroup () | |
QFilterGroup (const QString &name) | |
~QFilterGroup () | |
void | add (QAbstractFilter *filter) |
int | count () const |
QAbstractFilter * | filter (int index) const |
QAbstractFilter * | filterAtColumn (int column) const |
QList< QAbstractFilter * > | filters () const |
bool | hasFilter (int index) const |
QString | name () const |
bool | remove (int column) |
void | setName (const QString &name) |
The QFilterGroup class groups filter definitions.
QFilterGroup::QFilterGroup | ( | ) |
Constructs an invalid QFilterGroup.
QFilterGroup::QFilterGroup | ( | const QString & | name | ) |
Constructs a QFilterGroup with the given name
.
QFilterGroup::~QFilterGroup | ( | ) |
Destroys the QFilterGroup.
void QFilterGroup::add | ( | QAbstractFilter * | filter | ) |
Adds the given filter
to this group. The group takes the ownership of the filter
.
int QFilterGroup::count | ( | ) | const |
Returns the number of filter defined in this group.
QAbstractFilter * QFilterGroup::filter | ( | int | index | ) | const |
Returns the filter at the given index
. If index
is out of range, an invalid QFilterTableViewColumnFilter is returned.
QAbstractFilter * QFilterGroup::filterAtColumn | ( | int | column | ) | const |
Returns the filter for the specified column
. If no filter is defined for the specified column
, an invalid filter is returned.
QList< QAbstractFilter * > QFilterGroup::filters | ( | ) | const |
Returns a list of filter included in this gorup.
bool QFilterGroup::hasFilter | ( | int | index | ) | const |
Returns true if the column specified by the given index
has a filter. Returns false if the column index
does not exist or no filter is defined.
QString QFilterGroup::name | ( | ) | const |
Returns the filter group's name.
bool QFilterGroup::remove | ( | int | column | ) |
Removes the filter for the speicified column
.
void QFilterGroup::setName | ( | const QString & | name | ) |
Sets the filter group's name
.