akonadi
#include <kcolumnfilterproxymodel_p.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
KColumnFilterProxyModel (QObject *parent=0) | |
void | setVisibleColumn (int column) |
void | setVisibleColumns (const QVector< int > &visibleColumns) |
QVector< int > | visbileColumns () const |
Protected Member Functions | |
virtual bool | filterAcceptsColumn (int column, const QModelIndex &parent) const |
Detailed Description
Filter model to make only certain columns of a model visible.
By default all columns are visible.
Definition at line 38 of file kcolumnfilterproxymodel_p.h.
Member Function Documentation
void KColumnFilterProxyModel::setVisibleColumn | ( | int | column | ) |
Convenience function.
Has the same effect as:
- Parameters
-
column the column to set as visible
- See also
- setVisbileColumns
Definition at line 52 of file kcolumnfilterproxymodel.cpp.
void KColumnFilterProxyModel::setVisibleColumns | ( | const QVector< int > & | visibleColumns | ) |
Change the visible columns.
Pass an empty vector to make all columns visible.
- Parameters
-
visibleColumns the vector changing visible columns
Definition at line 57 of file kcolumnfilterproxymodel.cpp.
QVector< int > KColumnFilterProxyModel::visbileColumns | ( | ) | const |
Returns a vector containing the visible columns.
If the vector is empy, all columns are visible.
Definition at line 46 of file kcolumnfilterproxymodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.