• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akonadi_next

  • Akonadi
  • QuotaColorProxyModel
Public Member Functions | List of all members
Akonadi::QuotaColorProxyModel Class Reference

#include <quotacolorproxymodel.h>

Inheritance diagram for Akonadi::QuotaColorProxyModel:
Inheritance graph
[legend]

Public Member Functions

 QuotaColorProxyModel (QObject *parent=0)
 
virtual ~QuotaColorProxyModel ()
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual void setSourceModel (QAbstractItemModel *sourceModel)
 
void setWarningColor (const QColor &color)
 
void setWarningThreshold (qreal threshold)
 
QColor warningColor () const
 
qreal warningThreshold () const
 

Detailed Description

A proxy model that colors collection text if they're above a given quota threshold.

Akonadi::EntityTreeModel *model = new Akonadi::EntityTreeModel( ... );
Akonadi::QuotaColorProxyModel *proxy = new Akonadi::QuotaColorProxyModel();
proxy->setSourceModel( model );
Akonadi::EntityTreeView *view = new Akonadi::EntityTreeView( this );
view->setModel( proxy );
Author
Kevin Ottens ervin.nosp@m.@kde.nosp@m..org
Since
4.4

Definition at line 48 of file quotacolorproxymodel.h.

Constructor & Destructor Documentation

QuotaColorProxyModel::QuotaColorProxyModel ( QObject *  parent = 0)
explicit

Creates a new quota color proxy model.

Parameters
parentThe parent object.

Definition at line 49 of file quotacolorproxymodel.cpp.

QuotaColorProxyModel::~QuotaColorProxyModel ( )
virtual

Destroys the statistics tooltip proxy model.

Definition at line 55 of file quotacolorproxymodel.cpp.

Member Function Documentation

QVariant QuotaColorProxyModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 80 of file quotacolorproxymodel.cpp.

void QuotaColorProxyModel::setSourceModel ( QAbstractItemModel *  sourceModel)
virtual

Definition at line 103 of file quotacolorproxymodel.cpp.

void QuotaColorProxyModel::setWarningColor ( const QColor &  color)

Definition at line 70 of file quotacolorproxymodel.cpp.

void QuotaColorProxyModel::setWarningThreshold ( qreal  threshold)

Definition at line 60 of file quotacolorproxymodel.cpp.

QColor QuotaColorProxyModel::warningColor ( ) const

Definition at line 75 of file quotacolorproxymodel.cpp.

qreal QuotaColorProxyModel::warningThreshold ( ) const

Definition at line 65 of file quotacolorproxymodel.cpp.


The documentation for this class was generated from the following files:
  • quotacolorproxymodel.h
  • quotacolorproxymodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi_next

Skip menu "akonadi_next"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal