KD Chart API Documentation 3.1
|
#include <kdganttforwardingproxymodel.h>
Protected Slots | |
virtual void | sourceColumnsAboutToBeInserted (const QModelIndex &idx, int start, int end) |
Called just before columns are inserted into the source model. | |
virtual void | sourceColumnsAboutToBeRemoved (const QModelIndex &idx, int start, int end) |
Called just before columns are removed from the source model. | |
virtual void | sourceColumnsInserted (const QModelIndex &idx, int start, int end) |
Called after columns have been inserted into the source model. | |
virtual void | sourceColumnsRemoved (const QModelIndex &idx, int start, int end) |
Called after columns have been removed from the source model. | |
virtual void | sourceDataChanged (const QModelIndex &from, const QModelIndex &to) |
Called when the data in an existing item in the source model changes. | |
virtual void | sourceLayoutAboutToBeChanged () |
Called just before the layout of the source model is changed. | |
virtual void | sourceLayoutChanged () |
Called when the layout of the source model has changed. | |
virtual void | sourceModelAboutToBeReset () |
Called when the source model is about to be reset. | |
virtual void | sourceModelReset () |
Called when the source model is reset. | |
virtual void | sourceRowsAboutToBeInserted (const QModelIndex &idx, int start, int end) |
Called just before rows are inserted into the source model. | |
virtual void | sourceRowsAboutToBeRemoved (const QModelIndex &, int start, int end) |
Called just before rows are removed from the source model. | |
virtual void | sourceRowsInserted (const QModelIndex &idx, int start, int end) |
Called after rows have been inserted into the source model. | |
virtual void | sourceRowsRemoved (const QModelIndex &, int start, int end) |
Called after rows have been removed from the source model. | |
Definition at line 19 of file kdganttforwardingproxymodel.h.
Constructor.
Creates a new ForwardingProxyModel with parent parent
Definition at line 23 of file kdganttforwardingproxymodel.cpp.
|
override |
Definition at line 28 of file kdganttforwardingproxymodel.cpp.
|
overridevirtual |
Implements QAbstractItemModel.
Reimplemented in KDGantt::ProxyModel.
Definition at line 252 of file kdganttforwardingproxymodel.cpp.
References mapToSource(), QObject::qobject_cast(), and QAbstractProxyModel::sourceModel.
|
overridevirtual |
Reimplemented from QAbstractProxyModel.
Definition at line 284 of file kdganttforwardingproxymodel.cpp.
References QAbstractProxyModel::data(), index(), mapToSource(), QObject::parent(), QObject::qobject_cast(), rowCount(), and QAbstractProxyModel::sourceModel.
|
overridevirtual |
Implements QAbstractItemModel.
Definition at line 258 of file kdganttforwardingproxymodel.cpp.
References index(), mapFromSource(), mapToSource(), QObject::parent(), and QAbstractProxyModel::sourceModel.
Referenced by dropMimeData(), index(), KDAB_SCOPED_UNITTEST_SIMPLE(), setData(), and KDGantt::SummaryHandlingProxyModel::setData().
|
overridevirtual |
Converts indexes in the source model to indexes in the proxy model.
Implements QAbstractProxyModel.
Reimplemented in KDGantt::ProxyModel.
Definition at line 33 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::createIndex(), QObject::qobject_cast(), and QAbstractProxyModel::sourceModel.
Referenced by index(), parent(), KDGantt::SummaryHandlingProxyModel::setData(), sourceColumnsAboutToBeInserted(), sourceColumnsAboutToBeRemoved(), sourceDataChanged(), KDGantt::SummaryHandlingProxyModel::sourceDataChanged(), sourceRowsAboutToBeInserted(), and sourceRowsAboutToBeRemoved().
|
overridevirtual |
Converts indexes in the proxy model to indexes in the source model.
Implements QAbstractProxyModel.
Reimplemented in KDGantt::ProxyModel.
Definition at line 61 of file kdganttforwardingproxymodel.cpp.
References QObject::qobject_cast(), QModelIndex::row(), and QAbstractProxyModel::sourceModel.
Referenced by columnCount(), KDGantt::SummaryHandlingProxyModel::data(), dropMimeData(), KDGantt::SummaryHandlingProxyModel::flags(), index(), mimeData(), parent(), rowCount(), setData(), and KDGantt::SummaryHandlingProxyModel::setData().
Reimplemented from QAbstractProxyModel.
Definition at line 276 of file kdganttforwardingproxymodel.cpp.
References mapToSource(), QObject::qobject_cast(), and QAbstractProxyModel::sourceModel.
|
overridevirtual |
Reimplemented from QAbstractProxyModel.
Definition at line 304 of file kdganttforwardingproxymodel.cpp.
References QAbstractProxyModel::sourceModel.
|
overridevirtual |
Implements QAbstractItemModel.
Definition at line 264 of file kdganttforwardingproxymodel.cpp.
References mapFromSource(), mapToSource(), QObject::parent(), QObject::qobject_cast(), and QAbstractProxyModel::sourceModel.
|
overridevirtual |
Implements QAbstractItemModel.
Reimplemented in KDGantt::ProxyModel.
Definition at line 246 of file kdganttforwardingproxymodel.cpp.
References mapToSource(), QObject::qobject_cast(), and QAbstractProxyModel::sourceModel.
Referenced by dropMimeData().
|
overridevirtual |
Reimplemented from QAbstractProxyModel.
Reimplemented in KDGantt::ProxyModel, and KDGantt::SummaryHandlingProxyModel.
Definition at line 270 of file kdganttforwardingproxymodel.cpp.
References index(), mapToSource(), and QAbstractProxyModel::sourceModel.
|
overridevirtual |
Sets the model to be used as the source model for this proxy.
The proxy does not take ownership of the model.
Reimplemented from QAbstractProxyModel.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 82 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::columnsAboutToBeInserted(), QAbstractItemModel::columnsAboutToBeRemoved(), QAbstractItemModel::columnsInserted(), QAbstractItemModel::columnsRemoved(), QObject::connect(), QAbstractItemModel::dataChanged(), QAbstractItemModel::layoutAboutToBeChanged(), QAbstractItemModel::layoutChanged(), QAbstractItemModel::modelAboutToBeReset(), QAbstractItemModel::modelReset(), QAbstractItemModel::rowsAboutToBeInserted(), QAbstractItemModel::rowsAboutToBeRemoved(), QAbstractItemModel::rowsInserted(), QAbstractItemModel::rowsRemoved(), QAbstractProxyModel::setSourceModel(), sourceColumnsAboutToBeInserted(), sourceColumnsAboutToBeRemoved(), sourceColumnsInserted(), sourceColumnsRemoved(), sourceDataChanged(), sourceLayoutAboutToBeChanged(), sourceLayoutChanged(), QAbstractProxyModel::sourceModel, 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 168 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginInsertColumns(), mapFromSource(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before columns are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 189 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginRemoveColumns(), mapFromSource(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after columns have been inserted into the source model.
Definition at line 178 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::endInsertColumns(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after columns have been removed from the source model.
Definition at line 199 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::endRemoveColumns(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the data in an existing item in the source model changes.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 159 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::dataChanged(), mapFromSource(), QObject::Q_EMIT(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before the layout of the source model is changed.
Definition at line 140 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::layoutAboutToBeChanged(), and QObject::Q_EMIT().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the layout of the source model has changed.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 149 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginResetModel(), and QAbstractItemModel::endResetModel().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the source model is about to be reset.
Definition at line 121 of file kdganttforwardingproxymodel.cpp.
Referenced by setSourceModel().
|
protectedvirtualslot |
Called when the source model is reset.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 129 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginResetModel(), and QAbstractItemModel::endResetModel().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before rows are inserted into the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 210 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginInsertRows(), mapFromSource(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called just before rows are removed from the source model.
Reimplemented in KDGantt::SummaryHandlingProxyModel.
Definition at line 229 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::beginRemoveRows(), mapFromSource(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after rows have been inserted into the source model.
Definition at line 218 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::endInsertRows(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
protectedvirtualslot |
Called after rows have been removed from the source model.
Definition at line 237 of file kdganttforwardingproxymodel.cpp.
References QAbstractItemModel::endRemoveRows(), and QObject::qobject_cast().
Referenced by setSourceModel().
|
overridevirtual |
Reimplemented from QAbstractProxyModel.
Definition at line 309 of file kdganttforwardingproxymodel.cpp.
References QAbstractProxyModel::sourceModel.