kdgantt2
#include <kdganttforwardingproxymodel.h>
Public Member Functions | |
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 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) |
Detailed Description
Definition at line 33 of file kdganttforwardingproxymodel.h.
Constructor & Destructor Documentation
|
explicit |
Constructor. Creates a new ForwardingProxyModel with parent parent
Definition at line 36 of file kdganttforwardingproxymodel.cpp.
|
virtual |
Definition at line 41 of file kdganttforwardingproxymodel.cpp.
Member Function Documentation
int ForwardingProxyModel::columnCount | ( | const QModelIndex & | idx = QModelIndex() | ) | const |
- See also
- QAbstractItemModel::columnCount
Definition at line 255 of file kdganttforwardingproxymodel.cpp.
QModelIndex ForwardingProxyModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
- See also
- QAbstractItemModel::index
Definition at line 261 of file kdganttforwardingproxymodel.cpp.
QModelIndex ForwardingProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
Converts indexes in the source model to indexes in the proxy model
Definition at line 46 of file kdganttforwardingproxymodel.cpp.
QModelIndex ForwardingProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
Converts indexes in the proxy model to indexes in the source model
Definition at line 67 of file kdganttforwardingproxymodel.cpp.
QModelIndex ForwardingProxyModel::parent | ( | const QModelIndex & | idx | ) | const |
- See also
- QAbstractItemModel::parent
Definition at line 267 of file kdganttforwardingproxymodel.cpp.
int ForwardingProxyModel::rowCount | ( | const QModelIndex & | idx = QModelIndex() | ) | const |
- See also
- QAbstractItemModel::rowCount
Definition at line 249 of file kdganttforwardingproxymodel.cpp.
bool ForwardingProxyModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
- See also
- QAbstractItemModel::setData
Definition at line 273 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
Definition at line 88 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called just before columns are inserted into the source model.
- See also
- QAbstractItemModel::columnsAboutToBeInserted()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 171 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called just before columns are removed from the source model.
- See also
- QAbstractItemModel::columnsAboutToBeRemoved()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 192 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called after columns have been inserted into the source model.
- See also
- QAbstractItemModel::columnsInserted()
Definition at line 181 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called after columns have been removed from the source model.
- See also
- QAbstractItemModel::columnsRemoved()
Definition at line 202 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called when the data in an existing item in the source model changes.
- See also
- QAbstractItemModel::dataChanged()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 162 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called just before the layout of the source model is changed.
- See also
- QAbstractItemModel::layoutAboutToBeChanged()
Definition at line 144 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called when the layout of the source model has changed.
- See also
- QAbstractItemModel::layoutChanged()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 153 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called when the source model is about to be reset.
- See also
- QAbstractItemModel::modelAboutToBeReset()
Definition at line 126 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called when the source model is reset
- See also
- QAbstractItemModel::modelReset()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 134 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called just before rows are inserted into the source model.
- See also
- QAbstractItemModel::rowsAboutToBeInserted()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 213 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called just before rows are removed from the source model.
- See also
- QAbstractItemModel::rowsAboutToBeRemoved()
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 232 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called after rows have been inserted into the source model.
- See also
- QAbstractItemModel::rowsInserted()
Definition at line 221 of file kdganttforwardingproxymodel.cpp.
|
protectedvirtualslot |
Called after rows have been removed from the source model.
- See also
- QAbstractItemModel::rowsRemoved()
Definition at line 240 of file kdganttforwardingproxymodel.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.