akonadi
#include <statisticsproxymodel.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
| StatisticsProxyModel (QObject *parent=0) | |
| virtual | ~StatisticsProxyModel () |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual void | connectNotify (const char *signal) |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| bool | isExtraColumnsEnabled () const |
| bool | isToolTipEnabled () const |
| virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const |
| void | setExtraColumnsEnabled (bool enable) |
| virtual void | setSourceModel (QAbstractItemModel *sourceModel) |
| void | setToolTipEnabled (bool enable) |
Detailed Description
A proxy model that exposes collection statistics through extra columns.
This class can be used on top of an EntityTreeModel to display extra columns summarizing statistics of collections.
- Since
- 4.4
- Deprecated:
- use the one in kdepim, which is much faster
Definition at line 51 of file statisticsproxymodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new statistics proxy model.
- Parameters
-
parent The parent object.
Definition at line 286 of file statisticsproxymodel.cpp.
|
virtual |
Destroys the statistics proxy model.
Definition at line 294 of file statisticsproxymodel.cpp.
Member Function Documentation
| bool StatisticsProxyModel::isExtraColumnsEnabled | ( | ) | const |
Return true if we display extra statistics columns, otherwise false.
Definition at line 314 of file statisticsproxymodel.cpp.
| bool StatisticsProxyModel::isToolTipEnabled | ( | ) | const |
Return true if we display tooltips, otherwise false.
Definition at line 304 of file statisticsproxymodel.cpp.
| void StatisticsProxyModel::setExtraColumnsEnabled | ( | bool | enable | ) |
- Parameters
-
enable Display extra statistics columns
Definition at line 309 of file statisticsproxymodel.cpp.
| void StatisticsProxyModel::setToolTipEnabled | ( | bool | enable | ) |
- Parameters
-
enable Display tooltips
Definition at line 299 of file statisticsproxymodel.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.
KDE API Reference