akonadi
collectionstatisticsmodel.cpp
94 Collection col = collectionForId( CollectionModel::data( index, CollectionIdRole ).toLongLong() );
152 if ( role == Qt::TextAlignmentRole && ( index.column() == 1 || index.column() == 2 || index.column() == 3 ) ) {
159 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:159
CollectionStatisticsModel(QObject *parent=0)
Creates a new collection statistics model.
Definition: collectionstatisticsmodel.cpp:73
Collection collectionForId(Collection::Id id) const
Returns the collection for a given collection id.
Definition: collectionmodel.cpp:309
void fetchCollectionStatistics(bool enable)
Sets whether collection statistics information shall be provided by the model.
Definition: collectionmodel.cpp:315
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: collectionstatisticsmodel.cpp:87
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:79
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 Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.