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

kdgantt

KDGantt::SummaryHandlingProxyModel

KDGantt::SummaryHandlingProxyModel Class Reference

#include <kdganttsummaryhandlingproxymodel.h>

Inheritance diagram for KDGantt::SummaryHandlingProxyModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

Proxy model that supports summary gantt items.

This proxy model provides the functionality of summary items. A summary item is an item with type KDGantt::TypeSummary and zero or more children in the model that it summarizes. GraphicsView itself does not dictate any policy for summary items, instead the logic for making the summary items start and end points span it's children is provided by this proxy.

The start and end times of a summary is the min/max of the start/end times of it's children.

See also:
GraphicsView::setModel

Definition at line 31 of file kdganttsummaryhandlingproxymodel.h.


Public Member Functions

QVariant data (const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const
Qt::ItemFlags flags (const QModelIndex &idx) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void setSourceModel (QAbstractItemModel *model)
 SummaryHandlingProxyModel (QObject *parent=0)
virtual ~SummaryHandlingProxyModel ()

Protected Member Functions

void sourceColumnsAboutToBeInserted (const QModelIndex &idx, int start, int end)
void sourceColumnsAboutToBeRemoved (const QModelIndex &idx, int start, int end)
void sourceDataChanged (const QModelIndex &from, const QModelIndex &to)
void sourceLayoutChanged ()
void sourceModelReset ()
void sourceRowsAboutToBeInserted (const QModelIndex &idx, int start, int end)
void sourceRowsAboutToBeRemoved (const QModelIndex &, int start, int end)

Constructor & Destructor Documentation

SummaryHandlingProxyModel::SummaryHandlingProxyModel ( QObject *  parent = 0  )  [explicit]

Constructor. Creates a new SummaryHandlingProxyModel with parent parent

Definition at line 120 of file kdganttsummaryhandlingproxymodel.cpp.

SummaryHandlingProxyModel::~SummaryHandlingProxyModel (  )  [virtual]

Definition at line 127 of file kdganttsummaryhandlingproxymodel.cpp.


Member Function Documentation

QVariant SummaryHandlingProxyModel::data ( const QModelIndex &  proxyIndex,
int  role = Qt::DisplayRole 
) const

See also:
QAbstractItemModel::data

Definition at line 225 of file kdganttsummaryhandlingproxymodel.cpp.

Qt::ItemFlags SummaryHandlingProxyModel::flags ( const QModelIndex &  idx  )  const

See also:
QAbstractItemModel::flags

Definition at line 213 of file kdganttsummaryhandlingproxymodel.cpp.

bool SummaryHandlingProxyModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

See also:
QAbstractItemModel::setData

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 249 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::setSourceModel ( QAbstractItemModel *  model  ) 

Sets the model to be used as the source model for this proxy. The proxy does not take ownership of the model.

See also:
QAbstractProxyModel::setSourceModel

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 149 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceColumnsAboutToBeInserted ( const QModelIndex &  parentIdx,
int  start,
int  end 
) [protected, virtual]

Called just before columns are inserted into the source model.

See also:
QAbstractItemModel::columnsAboutToBeInserted()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 184 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceColumnsAboutToBeRemoved ( const QModelIndex &  parentIdx,
int  start,
int  end 
) [protected, virtual]

Called just before columns are removed from the source model.

See also:
QAbstractItemModel::columnsAboutToBeRemoved()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 192 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceDataChanged ( const QModelIndex &  from,
const QModelIndex &  to 
) [protected, virtual]

Called when the data in an existing item in the source model changes.

See also:
QAbstractItemModel::dataChanged()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 167 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceLayoutChanged (  )  [protected, virtual]

Called when the layout of the source model has changed.

See also:
QAbstractItemModel::layoutChanged()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 161 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceModelReset (  )  [protected, virtual]

Called when the source model is reset

See also:
QAbstractItemModel::modelReset()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 155 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceRowsAboutToBeInserted ( const QModelIndex &  parentIdx,
int  start,
int  end 
) [protected, virtual]

Called just before rows are inserted into the source model.

See also:
QAbstractItemModel::rowsAboutToBeInserted()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 200 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceRowsAboutToBeRemoved ( const QModelIndex &  parentIdx,
int  start,
int  end 
) [protected, virtual]

Called just before rows are removed from the source model.

See also:
QAbstractItemModel::rowsAboutToBeRemoved()

Reimplemented from KDGantt::ForwardingProxyModel.

Definition at line 206 of file kdganttsummaryhandlingproxymodel.cpp.


The documentation for this class was generated from the following files:
  • kdganttsummaryhandlingproxymodel.h
  • kdganttsummaryhandlingproxymodel.cpp

kdgantt

Skip menu "kdgantt"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal