A delegate that draws unread and total count for CollectionStatisticsModel.
The delegate provides the following features:
- Collections with unread items will have the foldername and the unread
column marked in bold.
- If a folder is collapsed, the unread and the total column will contain
the total sum of all child folders
- It has the possibility to draw the unread count directly after the
foldername, see toggleUnreadAfterFolderName().
Example:
QTreeView *view = new QTreeView( this );
Akonadi.CollectionStatisticsModel *model = new Akonadi.CollectionStatisticsModel( view );
view->setModel( model );
Akonadi.CollectionStatisticsDelegate *delegate = new Akonadi.CollectionStatisticsDelegate( view );
view->setItemDelegate( delegate );
Author Thomas McGuire
|