kdgantt
KDGantt::SummaryHandlingProxyModel Class Reference
#include <kdganttsummaryhandlingproxymodel.h>

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.
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.
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.
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.
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 206 of file kdganttsummaryhandlingproxymodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference