akonadi
collectionstatisticsmodel.cpp
93 Collection col = collectionForId( CollectionModel::data( index, CollectionIdRole ).toLongLong() );
151 if ( role == Qt::TextAlignmentRole && ( index.column() == 1 || index.column() == 2 || index.column() == 3 ) ) {
158 QVariant CollectionStatisticsModel::headerData( int section, Qt::Orientation orientation, int role ) const
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition: collectionstatistics.cpp:67
The total size of the items in this collection and its children.
Definition: collectionstatisticsmodel.h:69
Provides statistics information of a Collection.
Definition: collectionstatistics.h:69
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: collectionstatisticsmodel.cpp:158
CollectionStatisticsModel(QObject *parent=0)
Creates a new collection statistics model.
Definition: collectionstatisticsmodel.cpp:72
Collection collectionForId(Collection::Id id) const
Returns the collection for a given collection id.
Definition: collectionmodel.cpp:308
void fetchCollectionStatistics(bool enable)
Sets whether collection statistics information shall be provided by the model.
Definition: collectionmodel.cpp:314
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: collectionstatisticsmodel.cpp:86
A model that provides statistics for collections.
Definition: collectionstatisticsmodel.h:52
A statistics object of this collection.
Definition: collectionstatisticsmodel.h:64
The number of unread items in this collection and its children.
Definition: collectionstatisticsmodel.h:65
The number of items in this collection.
Definition: collectionstatisticsmodel.h:63
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available...
Definition: collectionstatistics.cpp:77
The number of unread items in this collection.
Definition: collectionstatisticsmodel.h:62
The total size of the items in this collection.
Definition: collectionstatisticsmodel.h:68
The collection identifier.
Definition: collectionmodel.h:65
A statistics object of this collection and its children.
Definition: collectionstatisticsmodel.h:67
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition: collection.cpp:238
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: collectionstatisticsmodel.cpp:78
The number of items in this collection and its children.
Definition: collectionstatisticsmodel.h:66
qint64 size() const
Returns the total size of the items in this collection or -1 if this information is not available...
Definition: collectionstatistics.cpp:87
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:51 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:51 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.