kdgantt
KDGantt::ForwardingProxyModel Class Reference
#include <kdganttforwardingproxymodel.h>

Detailed Description
Definition at line 31 of file kdganttforwardingproxymodel.h.
Public Member Functions | |
| int | columnCount (const QModelIndex &idx=QModelIndex()) const |
| ForwardingProxyModel (QObject *parent=0) | |
| 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) |
| virtual | ~ForwardingProxyModel () |
Protected Slots | |
| virtual void | sourceColumnsAboutToBeInserted (const QModelIndex &idx, int start, int end) |
| virtual void | sourceColumnsAboutToBeRemoved (const QModelIndex &idx, int start, int end) |
| virtual void | sourceColumnsInserted (const QModelIndex &idx, int start, int end) |
| virtual void | sourceColumnsRemoved (const QModelIndex &idx, int start, int end) |
| virtual void | sourceDataChanged (const QModelIndex &from, const QModelIndex &to) |
| virtual void | sourceLayoutAboutToBeChanged () |
| virtual void | sourceLayoutChanged () |
| virtual void | sourceModelAboutToBeReset () |
| virtual void | sourceModelReset () |
| virtual void | sourceRowsAboutToBeInserted (const QModelIndex &idx, int start, int end) |
| virtual void | sourceRowsAboutToBeRemoved (const QModelIndex &, int start, int end) |
| virtual void | sourceRowsInserted (const QModelIndex &idx, int start, int end) |
| virtual void | sourceRowsRemoved (const QModelIndex &, int start, int end) |
Constructor & Destructor Documentation
| ForwardingProxyModel::ForwardingProxyModel | ( | QObject * | parent = 0 |
) | [explicit] |
Constructor. Creates a new ForwardingProxyModel with parent parent
Definition at line 34 of file kdganttforwardingproxymodel.cpp.
| ForwardingProxyModel::~ForwardingProxyModel | ( | ) | [virtual] |
Definition at line 39 of file kdganttforwardingproxymodel.cpp.
Member Function Documentation
| int ForwardingProxyModel::columnCount | ( | const QModelIndex & | idx = QModelIndex() |
) | const |
- See also:
- QAbstractItemModel::columnCount
Reimplemented in KDGantt::ProxyModel.
Definition at line 253 of file kdganttforwardingproxymodel.cpp.
| QModelIndex ForwardingProxyModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const |
| QModelIndex ForwardingProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
Converts indexes in the source model to indexes in the proxy model
Reimplemented in KDGantt::ProxyModel.
Definition at line 44 of file kdganttforwardingproxymodel.cpp.
| QModelIndex ForwardingProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
Converts indexes in the proxy model to indexes in the source model
Reimplemented in KDGantt::ProxyModel.
Definition at line 65 of file kdganttforwardingproxymodel.cpp.
| QModelIndex ForwardingProxyModel::parent | ( | const QModelIndex & | idx | ) | const |
| int ForwardingProxyModel::rowCount | ( | const QModelIndex & | idx = QModelIndex() |
) | const |
- See also:
- QAbstractItemModel::rowCount
Reimplemented in KDGantt::ProxyModel.
Definition at line 247 of file kdganttforwardingproxymodel.cpp.
| bool ForwardingProxyModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
- See also:
- QAbstractItemModel::setData
Reimplemented in KDGantt::ProxyModel, and KDGantt::SummaryHandlingProxyModel.
Definition at line 271 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::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 QAbstractProxyModel.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 86 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceColumnsAboutToBeInserted | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called just before columns are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 169 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceColumnsAboutToBeRemoved | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called just before columns are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 190 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceColumnsInserted | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called after columns have been inserted into the source model.
Definition at line 179 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceColumnsRemoved | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called after columns have been removed from the source model.
- See also:
- QAbstractItemModel::columnsRemoved()
Definition at line 200 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceDataChanged | ( | const QModelIndex & | from, | |
| const QModelIndex & | to | |||
| ) | [protected, virtual, slot] |
Called when the data in an existing item in the source model changes.
- See also:
- QAbstractItemModel::dataChanged()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 160 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceLayoutAboutToBeChanged | ( | ) | [protected, virtual, slot] |
Called just before the layout of the source model is changed.
Definition at line 142 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceLayoutChanged | ( | ) | [protected, virtual, slot] |
Called when the layout of the source model has changed.
- See also:
- QAbstractItemModel::layoutChanged()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 151 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceModelAboutToBeReset | ( | ) | [protected, virtual, slot] |
Called when the source model is about to be reset.
Definition at line 124 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceModelReset | ( | ) | [protected, virtual, slot] |
Called when the source model is reset
- See also:
- QAbstractItemModel::modelReset()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 132 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceRowsAboutToBeInserted | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called just before rows are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 211 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceRowsAboutToBeRemoved | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called just before rows are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 230 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceRowsInserted | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called after rows have been inserted into the source model.
- See also:
- QAbstractItemModel::rowsInserted()
Definition at line 219 of file kdganttforwardingproxymodel.cpp.
| void ForwardingProxyModel::sourceRowsRemoved | ( | const QModelIndex & | parentIdx, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Called after rows have been removed from the source model.
- See also:
- QAbstractItemModel::rowsRemoved()
Definition at line 238 of file kdganttforwardingproxymodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference