akonadi_next
quotacolorproxymodel.cpp
Go to the documentation of this file.
85 const Collection collection = sourceModel()->data( rowIndex, EntityTreeModel::CollectionRole ).value<Collection>();
iterator insert(const Key &key, const T &value)
QuotaColorProxyModel(QObject *parent=0)
Creates a new quota color proxy model.
Definition: quotacolorproxymodel.cpp:49
A proxy model that colors collection text if they're above a given quota threshold.
Definition: quotacolorproxymodel.h:48
const QHash< int, QByteArray > & roleNames() const
qreal warningThreshold() const
Definition: quotacolorproxymodel.cpp:65
T value() const
void setWarningThreshold(qreal threshold)
Definition: quotacolorproxymodel.cpp:60
int row() const
QColor warningColor() const
Definition: quotacolorproxymodel.cpp:75
virtual void setSourceModel(QAbstractItemModel *sourceModel)
Definition: quotacolorproxymodel.cpp:103
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: quotacolorproxymodel.cpp:80
QVariant data(int role) const
QModelIndex sibling(int row, int column) const
virtual ~QuotaColorProxyModel()
Destroys the statistics tooltip proxy model.
Definition: quotacolorproxymodel.cpp:55
void setWarningColor(const QColor &color)
Definition: quotacolorproxymodel.cpp:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.