29 Q_DECLARE_PUBLIC(QAbstractProxyModel)
31 QAbstractProxyModelPrivate()
32 : QAbstractItemModelPrivate(),
33 sourceHadZeroRows(
false),
34 sourceHadZeroColumns(
false),
35 updateVerticalHeader(
false),
36 updateHorizontalHeader(
false)
38 void setModelForwarder(QAbstractItemModel *sourceModel)
40 q_func()->setSourceModel(sourceModel);
42 void modelChangedForwarder()
44 Q_EMIT q_func()->sourceModelChanged(QAbstractProxyModel::QPrivateSignal());
46 QAbstractItemModel *getModelForwarder()
const {
return q_func()->sourceModel(); }
48 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractProxyModelPrivate, QAbstractItemModel *, model,
49 &QAbstractProxyModelPrivate::setModelForwarder,
50 &QAbstractProxyModelPrivate::modelChangedForwarder,
51 &QAbstractProxyModelPrivate::getModelForwarder,
nullptr)
52 virtual void _q_sourceModelDestroyed();
53 void _q_sourceModelRowsAboutToBeInserted(
const QModelIndex &parent,
int first,
int last);
54 void _q_sourceModelRowsInserted(
const QModelIndex &parent,
int first,
int last);
55 void _q_sourceModelRowsRemoved(
const QModelIndex &parent,
int first,
int last);
56 void _q_sourceModelColumnsAboutToBeInserted(
const QModelIndex &parent,
int first,
int last);
57 void _q_sourceModelColumnsInserted(
const QModelIndex &parent,
int first,
int last);
58 void _q_sourceModelColumnsRemoved(
const QModelIndex &parent,
int first,
int last);
60 void mapDropCoordinatesToSource(
int row,
int column,
const QModelIndex &parent,
61 int *source_row,
int *source_column, QModelIndex *source_parent)
const;
63 void scheduleHeaderUpdate(Qt::Orientation orientation);
64 void emitHeaderDataChanged();
66 unsigned int sourceHadZeroRows : 1;
67 unsigned int sourceHadZeroColumns : 1;
68 unsigned int updateVerticalHeader : 1;
69 unsigned int updateHorizontalHeader : 1;