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

kdgantt2

  • KDGantt
  • SummaryHandlingProxyModel
Classes | Public Member Functions | Protected Member Functions | List of all members
KDGantt::SummaryHandlingProxyModel Class Reference

#include <kdganttsummaryhandlingproxymodel.h>

Inheritance diagram for KDGantt::SummaryHandlingProxyModel:
Inheritance graph
[legend]

Classes

class  Private
 

Public Member Functions

 SummaryHandlingProxyModel (QObject *parent=0)
 
virtual ~SummaryHandlingProxyModel ()
 
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)
 
- Public Member Functions inherited from KDGantt::ForwardingProxyModel
 ForwardingProxyModel (QObject *parent=0)
 
virtual ~ForwardingProxyModel ()
 
int columnCount (const QModelIndex &idx=QModelIndex()) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
 
QModelIndex mapToSource (const QModelIndex &proxyIndex) const
 
QModelIndex parent (const QModelIndex &idx) const
 
int rowCount (const QModelIndex &idx=QModelIndex()) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setSourceModel (QAbstractItemModel *model)
 

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)
 

Additional Inherited Members

- Protected Slots inherited from KDGantt::ForwardingProxyModel
virtual void sourceColumnsInserted (const QModelIndex &idx, int start, int end)
 
virtual void sourceColumnsRemoved (const QModelIndex &idx, int start, int end)
 
virtual void sourceLayoutAboutToBeChanged ()
 
virtual void sourceModelAboutToBeReset ()
 
virtual void sourceRowsInserted (const QModelIndex &idx, int start, int end)
 
virtual void sourceRowsRemoved (const QModelIndex &, int start, int end)
 

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.

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

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

Definition at line 149 of file kdganttsummaryhandlingproxymodel.cpp.

void SummaryHandlingProxyModel::sourceColumnsAboutToBeInserted ( const QModelIndex &  parentIdx,
int  start,
int  end 
)
protectedvirtual

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 
)
protectedvirtual

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 
)
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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 
)
protectedvirtual

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 
)
protectedvirtual

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdgantt2

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

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