kdgantt2
#include <kdganttsummaryhandlingproxymodel.h>
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
|
explicit |
Constructor. Creates a new SummaryHandlingProxyModel with parent parent
Definition at line 120 of file kdganttsummaryhandlingproxymodel.cpp.
|
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.
|
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.
|
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.
|
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.
|
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.
|
protectedvirtual |
Called when the source model is reset
- See also
- QAbstractItemModel::modelReset()
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 155 of file kdganttsummaryhandlingproxymodel.cpp.
|
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.
|
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:
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.