45#define ATTRIBUTE __attribute__((__may_alias__))
279 for (
int i = 0;
i < indexes.count(); ++
i)
286 if ((row == -1) && (column == -1))
314#include "moc_kdganttforwardingproxymodel.cpp"
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
Converts indexes in the source model to indexes in the proxy model.
~ForwardingProxyModel() override
QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
Converts indexes in the proxy model to indexes in the source model.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
ForwardingProxyModel(QObject *parent=nullptr)
Constructor.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
QStringList mimeTypes() const override
virtual void sourceModelAboutToBeReset()
Called when the source model is about to be reset.
virtual void sourceRowsRemoved(const QModelIndex &, int start, int end)
Called after rows have been removed from the source model.
virtual void sourceColumnsAboutToBeInserted(const QModelIndex &idx, int start, int end)
Called just before columns are inserted into the source model.
virtual void sourceLayoutAboutToBeChanged()
Called just before the layout of the source model is changed.
virtual void sourceDataChanged(const QModelIndex &from, const QModelIndex &to)
Called when the data in an existing item in the source model changes.
Qt::DropActions supportedDropActions() const override
virtual void sourceColumnsAboutToBeRemoved(const QModelIndex &idx, int start, int end)
Called just before columns are removed from the source model.
virtual void sourceLayoutChanged()
Called when the layout of the source model has changed.
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
int rowCount(const QModelIndex &idx=QModelIndex()) const override
virtual void sourceColumnsRemoved(const QModelIndex &idx, int start, int end)
Called after columns have been removed from the source model.
virtual void sourceModelReset()
Called when the source model is reset.
void setSourceModel(QAbstractItemModel *model) override
Sets the model to be used as the source model for this proxy.
virtual void sourceRowsInserted(const QModelIndex &idx, int start, int end)
Called after rows have been inserted into the source model.
int columnCount(const QModelIndex &idx=QModelIndex()) const override
virtual void sourceRowsAboutToBeRemoved(const QModelIndex &, int start, int end)
Called just before rows 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 sourceRowsAboutToBeInserted(const QModelIndex &idx, int start, int end)
Called just before rows are inserted into the source model.
QMimeData * mimeData(const QModelIndexList &indexes) const override
void beginInsertColumns(const QModelIndex &parent, int first, int last)
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginRemoveColumns(const QModelIndex &parent, int first, int last)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void columnsAboutToBeInserted(const QModelIndex &parent, int first, int last)
void columnsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
void columnsInserted(const QModelIndex &parent, int first, int last)
void columnsRemoved(const QModelIndex &parent, int first, int last)
QModelIndex createIndex(int row, int column, void *ptr) const const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles)
void layoutAboutToBeChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
void modelAboutToBeReset()
void rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
void rowsInserted(const QModelIndex &parent, int first, int last)
void rowsRemoved(const QModelIndex &parent, int first, int last)
virtual QVariant data(const QModelIndex &proxyIndex, int role) const const override
virtual void setSourceModel(QAbstractItemModel *sourceModel)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
T qobject_cast(QObject *object)