|
KD Chart 2 [rev.2.4]
|
#include <kdganttproxymodel.h>


Public Member Functions | |
| int | column (int ganttrole) const |
| int | columnCount (const QModelIndex &idx) const |
| QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | mapFromSource (const QModelIndex &idx) const |
| QModelIndex | mapToSource (const QModelIndex &proxyIdx) const |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| QStringList | mimeTypes () const |
| QModelIndex | parent (const QModelIndex &idx) const |
| ProxyModel (QObject *parent=0) | |
| int | role (int ganttrole) const |
| int | rowCount (const QModelIndex &idx) const |
| void | setColumn (int ganttrole, int col) |
| bool | setData (const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole) |
| void | setRole (int ganttrole, int role) |
| void | setSourceModel (QAbstractItemModel *model) |
| Qt::DropActions | supportedDropActions () const |
| virtual | ~ProxyModel () |
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) |
Definition at line 29 of file kdganttproxymodel.h.
| ProxyModel::ProxyModel | ( | QObject * | parent = 0 | ) | [explicit] |
Definition at line 53 of file kdganttproxymodel.cpp.
| ProxyModel::~ProxyModel | ( | ) | [virtual] |
Definition at line 59 of file kdganttproxymodel.cpp.
| int ProxyModel::column | ( | int | ganttrole | ) | const |
Definition at line 112 of file kdganttproxymodel.cpp.
References d.
| int ProxyModel::columnCount | ( | const QModelIndex & | idx | ) | const |
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 148 of file kdganttproxymodel.cpp.
References mapToSource().
| QVariant ProxyModel::data | ( | const QModelIndex & | idx, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 153 of file kdganttproxymodel.cpp.
References d, KDGantt::ForwardingProxyModel::index(), mapToSource(), and role().
| bool ForwardingProxyModel::dropMimeData | ( | const QMimeData * | data, |
| Qt::DropAction | action, | ||
| int | row, | ||
| int | column, | ||
| const QModelIndex & | parent | ||
| ) | [inherited] |
Definition at line 292 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::index(), KDGantt::ForwardingProxyModel::mapToSource(), and KDGantt::ForwardingProxyModel::rowCount().
| QModelIndex ForwardingProxyModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const [inherited] |
Definition at line 266 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource(), and KDGantt::ForwardingProxyModel::mapToSource().
Referenced by data(), KDGantt::ForwardingProxyModel::dropMimeData(), and KDAB_SCOPED_UNITTEST_SIMPLE().
| QModelIndex ProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
Converts indexes in the source model to indexes in the proxy model
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 70 of file kdganttproxymodel.cpp.
| QModelIndex ProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
Converts indexes in the proxy model to indexes in the source model
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 92 of file kdganttproxymodel.cpp.
Referenced by columnCount(), data(), and setData().
| QMimeData * ForwardingProxyModel::mimeData | ( | const QModelIndexList & | indexes | ) | const [inherited] |
Definition at line 284 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapToSource().
| QStringList ForwardingProxyModel::mimeTypes | ( | ) | const [inherited] |
Definition at line 312 of file kdganttforwardingproxymodel.cpp.
| QModelIndex ForwardingProxyModel::parent | ( | const QModelIndex & | idx | ) | const [inherited] |
Definition at line 272 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource(), and KDGantt::ForwardingProxyModel::mapToSource().
| int ProxyModel::role | ( | int | ganttrole | ) | const |
| int ProxyModel::rowCount | ( | const QModelIndex & | idx | ) | const |
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 142 of file kdganttproxymodel.cpp.
| void ProxyModel::setColumn | ( | int | ganttrole, |
| int | col | ||
| ) |
Definition at line 107 of file kdganttproxymodel.cpp.
References d.
| bool ProxyModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Reimplemented from KDGantt::ForwardingProxyModel.
Definition at line 174 of file kdganttproxymodel.cpp.
References d, mapToSource(), and role().
| void ProxyModel::setRole | ( | int | ganttrole, |
| int | role | ||
| ) |
Definition at line 117 of file kdganttproxymodel.cpp.
| void ForwardingProxyModel::setSourceModel | ( | QAbstractItemModel * | model | ) | [inherited] |
Sets the model to be used as the source model for this proxy. The proxy does not take ownership of the model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 93 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::sourceColumnsAboutToBeInserted(), KDGantt::ForwardingProxyModel::sourceColumnsAboutToBeRemoved(), KDGantt::ForwardingProxyModel::sourceColumnsInserted(), KDGantt::ForwardingProxyModel::sourceColumnsRemoved(), KDGantt::ForwardingProxyModel::sourceDataChanged(), KDGantt::ForwardingProxyModel::sourceLayoutAboutToBeChanged(), KDGantt::ForwardingProxyModel::sourceLayoutChanged(), KDGantt::ForwardingProxyModel::sourceModelAboutToBeReset(), KDGantt::ForwardingProxyModel::sourceModelReset(), KDGantt::ForwardingProxyModel::sourceRowsAboutToBeInserted(), KDGantt::ForwardingProxyModel::sourceRowsAboutToBeRemoved(), KDGantt::ForwardingProxyModel::sourceRowsInserted(), and KDGantt::ForwardingProxyModel::sourceRowsRemoved().
| void ForwardingProxyModel::sourceColumnsAboutToBeInserted | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called just before columns are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 176 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource().
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceColumnsAboutToBeRemoved | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called just before columns are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 197 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource().
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceColumnsInserted | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called after columns have been inserted into the source model.
Definition at line 186 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceColumnsRemoved | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called after columns have been removed from the source model.
Definition at line 207 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceDataChanged | ( | const QModelIndex & | from, |
| const QModelIndex & | to | ||
| ) | [protected, virtual, slot, inherited] |
Called when the data in an existing item in the source model changes.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 167 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource().
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceLayoutAboutToBeChanged | ( | ) | [protected, virtual, slot, inherited] |
Called just before the layout of the source model is changed.
Definition at line 149 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceLayoutChanged | ( | ) | [protected, virtual, slot, inherited] |
Called when the layout of the source model has changed.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 158 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceModelAboutToBeReset | ( | ) | [protected, virtual, slot, inherited] |
Called when the source model is about to be reset.
Definition at line 131 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceModelReset | ( | ) | [protected, virtual, slot, inherited] |
Called when the source model is reset
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 139 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceRowsAboutToBeInserted | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called just before rows are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 218 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource().
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceRowsAboutToBeRemoved | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called just before rows are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 237 of file kdganttforwardingproxymodel.cpp.
References KDGantt::ForwardingProxyModel::mapFromSource().
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceRowsInserted | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called after rows have been inserted into the source model.
Definition at line 226 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| void ForwardingProxyModel::sourceRowsRemoved | ( | const QModelIndex & | parentIdx, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual, slot, inherited] |
Called after rows have been removed from the source model.
Definition at line 245 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::ForwardingProxyModel::setSourceModel().
| Qt::DropActions ForwardingProxyModel::supportedDropActions | ( | ) | const [inherited] |
Definition at line 317 of file kdganttforwardingproxymodel.cpp.