libkdepim
#include <statisticsproxymodel.h>
Public Member Functions | |
StatisticsProxyModel (QObject *parent=0) | |
virtual | ~StatisticsProxyModel () |
QModelIndex | buddy (const QModelIndex &index) const |
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 |
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const |
QItemSelection | mapSelectionToSource (const QItemSelection &selection) const |
QModelIndex | mapToSource (const QModelIndex &sourceIndex) 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 |
virtual QModelIndex | parent (const QModelIndex &child) 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
Definition at line 50 of file statisticsproxymodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new statistics proxy model.
- Parameters
-
parent The parent object.
Definition at line 295 of file statisticsproxymodel.cpp.
|
virtual |
Destroys the statistics proxy model.
Definition at line 303 of file statisticsproxymodel.cpp.
Member Function Documentation
QModelIndex StatisticsProxyModel::buddy | ( | const QModelIndex & | index | ) | const |
Definition at line 515 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 468 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 282 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 381 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 457 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 438 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 328 of file statisticsproxymodel.cpp.
bool StatisticsProxyModel::isExtraColumnsEnabled | ( | ) | const |
Return true if we display extra statistics columns, otherwise false.
Definition at line 323 of file statisticsproxymodel.cpp.
bool StatisticsProxyModel::isToolTipEnabled | ( | ) | const |
Return true if we display tooltips, otherwise false.
Definition at line 313 of file statisticsproxymodel.cpp.
QModelIndex StatisticsProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
Definition at line 495 of file statisticsproxymodel.cpp.
QItemSelection StatisticsProxyModel::mapSelectionToSource | ( | const QItemSelection & | selection | ) | const |
Definition at line 521 of file statisticsproxymodel.cpp.
QModelIndex StatisticsProxyModel::mapToSource | ( | const QModelIndex & | sourceIndex | ) | const |
Definition at line 504 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 478 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 361 of file statisticsproxymodel.cpp.
void StatisticsProxyModel::setExtraColumnsEnabled | ( | bool | enable | ) |
- Parameters
-
enable Display extra statistics columns
Definition at line 318 of file statisticsproxymodel.cpp.
|
virtual |
Definition at line 269 of file statisticsproxymodel.cpp.
void StatisticsProxyModel::setToolTipEnabled | ( | bool | enable | ) |
- Parameters
-
enable Display tooltips
Definition at line 308 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 22:58:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.