KD Chart 2
[rev.2.7]
|
#include <kdganttforwardingproxymodel.h>
Public Member Functions | |
int | columnCount (const QModelIndex &idx=QModelIndex()) const override |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
ForwardingProxyModel (QObject *parent=0) | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const override |
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const override |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
QStringList | mimeTypes () const override |
QModelIndex | parent (const QModelIndex &idx) const override |
int | rowCount (const QModelIndex &idx=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setSourceModel (QAbstractItemModel *model) override |
Qt::DropActions | supportedDropActions () const override |
~ForwardingProxyModel () override | |
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 31 of file kdganttforwardingproxymodel.h.
|
explicit |
Constructor. Creates a new ForwardingProxyModel with parent parent
Definition at line 35 of file kdganttforwardingproxymodel.cpp.
|
override |
Definition at line 40 of file kdganttforwardingproxymodel.cpp.
|
override |
Definition at line 262 of file kdganttforwardingproxymodel.cpp.
References mapToSource().
|
override |
Definition at line 294 of file kdganttforwardingproxymodel.cpp.
References index(), mapToSource(), and rowCount().
|
override |
Definition at line 268 of file kdganttforwardingproxymodel.cpp.
References mapFromSource(), and mapToSource().
Referenced by KDGantt::ProxyModel::data(), dropMimeData(), and KDAB_SCOPED_UNITTEST_SIMPLE().
|
override |
Converts indexes in the source model to indexes in the proxy model
Definition at line 45 of file kdganttforwardingproxymodel.cpp.
Referenced by KDGantt::View::ensureVisible(), index(), parent(), KDGantt::SummaryHandlingProxyModel::setData(), sourceColumnsAboutToBeInserted(), sourceColumnsAboutToBeRemoved(), KDGantt::SummaryHandlingProxyModel::sourceDataChanged(), sourceDataChanged(), sourceRowsAboutToBeInserted(), and sourceRowsAboutToBeRemoved().
|
override |
Converts indexes in the proxy model to indexes in the source model
Definition at line 72 of file kdganttforwardingproxymodel.cpp.
Referenced by columnCount(), KDGantt::SummaryHandlingProxyModel::data(), dropMimeData(), KDGantt::SummaryHandlingProxyModel::flags(), index(), mimeData(), parent(), rowCount(), KDGantt::SummaryHandlingProxyModel::setData(), and setData().
|
override |
Definition at line 286 of file kdganttforwardingproxymodel.cpp.
References mapToSource().
|
override |
Definition at line 314 of file kdganttforwardingproxymodel.cpp.
|
override |
Definition at line 274 of file kdganttforwardingproxymodel.cpp.
References mapFromSource(), and mapToSource().
|
override |
Definition at line 256 of file kdganttforwardingproxymodel.cpp.
References mapToSource().
Referenced by dropMimeData().
|
override |
Definition at line 280 of file kdganttforwardingproxymodel.cpp.
References mapToSource().
|
override |
Sets the model to be used as the source model for this proxy. The proxy does not take ownership of the model.
Definition at line 93 of file kdganttforwardingproxymodel.cpp.
References sourceColumnsAboutToBeInserted(), sourceColumnsAboutToBeRemoved(), sourceColumnsInserted(), sourceColumnsRemoved(), sourceDataChanged(), sourceLayoutAboutToBeChanged(), sourceLayoutChanged(), sourceModelAboutToBeReset(), sourceModelReset(), sourceRowsAboutToBeInserted(), sourceRowsAboutToBeRemoved(), sourceRowsInserted(), and sourceRowsRemoved().
|
protectedvirtualslot |
Called just before columns are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 178 of file kdganttforwardingproxymodel.cpp.
References mapFromSource().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before columns are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 199 of file kdganttforwardingproxymodel.cpp.
References mapFromSource().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after columns have been inserted into the source model.
Definition at line 188 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after columns have been removed from the source model.
Definition at line 209 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the data in an existing item in the source model changes.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 169 of file kdganttforwardingproxymodel.cpp.
References mapFromSource().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before the layout of the source model is changed.
Definition at line 150 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the layout of the source model has changed.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 159 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the source model is about to be reset.
Definition at line 131 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the source model is reset
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 139 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before rows are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 220 of file kdganttforwardingproxymodel.cpp.
References mapFromSource().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before rows are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 239 of file kdganttforwardingproxymodel.cpp.
References mapFromSource().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after rows have been inserted into the source model.
Definition at line 228 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after rows have been removed from the source model.
Definition at line 247 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
override |
Definition at line 319 of file kdganttforwardingproxymodel.cpp.