akonadi
#include <collectionstatisticsdelegate.h>

Public Slots | |
bool | progressAnimationEnabled () const |
void | setProgressAnimationEnabled (bool enable) |
void | setUnreadCountShown (bool enable) |
bool | unreadCountShown () const |
Public Member Functions | |
CollectionStatisticsDelegate (QAbstractItemView *parent) | |
CollectionStatisticsDelegate (QTreeView *parent) | |
~CollectionStatisticsDelegate () | |
void | updatePalette () |
![]() | |
QStyledItemDelegate (QObject *parent) | |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
virtual QString | displayText (const QVariant &value, const QLocale &locale) const |
QItemEditorFactory * | itemEditorFactory () const |
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
void | setItemEditorFactory (QItemEditorFactory *factory) |
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
![]() | |
QAbstractItemDelegate (QObject *parent) | |
void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
void | commitData (QWidget *editor) |
bool | helpEvent (QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0 |
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const =0 |
void | sizeHintChanged (const QModelIndex &index) |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
virtual void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
![]() | |
virtual bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
virtual bool | eventFilter (QObject *editor, QEvent *event) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
![]() | |
QString | elidedText (const QFontMetrics &fontMetrics, int width, Qt::TextElideMode mode, const QString &text) |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Detailed Description
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:
- Note
- This proxy model is intended to be used on top of the EntityTreeModel. One of the proxies between the EntityTreeModel (the root model) and the view must be a StatisticsProxyModel. That proxy model may appear anywhere in the chain.
Definition at line 64 of file collectionstatisticsdelegate.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new collection statistics delegate.
- Parameters
-
parent The parent item view, which will also take ownership.
- Since
- 4.6
Definition at line 97 of file collectionstatisticsdelegate.cpp.
|
explicit |
Creates a new collection statistics delegate.
- Parameters
-
parent The parent tree view, which will also take ownership.
Definition at line 104 of file collectionstatisticsdelegate.cpp.
CollectionStatisticsDelegate::~CollectionStatisticsDelegate | ( | ) |
Destroys the collection statistics delegate.
Definition at line 111 of file collectionstatisticsdelegate.cpp.
Member Function Documentation
|
protectedvirtual |
- Parameters
-
option style option view item index model index (QModelIndex)
Reimplemented from QStyledItemDelegate.
Definition at line 150 of file collectionstatisticsdelegate.cpp.
|
protectedvirtual |
- Parameters
-
painter pointer for QPainter to use in method option style options index model index (QModelIndex)
Reimplemented from QStyledItemDelegate.
Definition at line 196 of file collectionstatisticsdelegate.cpp.
|
slot |
- Parameters
-
enable new mode of progress animation
Definition at line 128 of file collectionstatisticsdelegate.cpp.
|
slot |
Sets whether the unread count is drawn next to the folder name.
You probably want to enable this when the unread count is hidden only. This is disabled by default.
- Parameters
-
enable If true
, the unread count is drawn next to the folder name, iffalse
, the folder name will be drawn normally.
Definition at line 116 of file collectionstatisticsdelegate.cpp.
|
slot |
Returns whether the unread count is drawn next to the folder name.
Definition at line 122 of file collectionstatisticsdelegate.cpp.
void CollectionStatisticsDelegate::updatePalette | ( | ) |
- Since
- 4.9.1
Definition at line 359 of file collectionstatisticsdelegate.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.