30 Q_DECLARE_PUBLIC(QAbstractProxyModel)
32 QAbstractProxyModelPrivate()
33 : QAbstractItemModelPrivate(),
34 sourceHadZeroRows(
false),
35 sourceHadZeroColumns(
false),
36 updateVerticalHeader(
false),
37 updateHorizontalHeader(
false)
39 void setModelForwarder(QAbstractItemModel *sourceModel)
41 q_func()->setSourceModel(sourceModel);
43 void modelChangedForwarder()
45 Q_EMIT q_func()->sourceModelChanged(QAbstractProxyModel::QPrivateSignal());
47 QAbstractItemModel *getModelForwarder()
const {
return q_func()->sourceModel(); }
49 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractProxyModelPrivate, QAbstractItemModel *, model,
50 &QAbstractProxyModelPrivate::setModelForwarder,
51 &QAbstractProxyModelPrivate::modelChangedForwarder,
52 &QAbstractProxyModelPrivate::getModelForwarder,
nullptr)
53 virtual void _q_sourceModelDestroyed();
54 void _q_sourceModelRowsAboutToBeInserted(
const QModelIndex &parent,
int first,
int last);
55 void _q_sourceModelRowsInserted(
const QModelIndex &parent,
int first,
int last);
56 void _q_sourceModelRowsRemoved(
const QModelIndex &parent,
int first,
int last);
57 void _q_sourceModelColumnsAboutToBeInserted(
const QModelIndex &parent,
int first,
int last);
58 void _q_sourceModelColumnsInserted(
const QModelIndex &parent,
int first,
int last);
59 void _q_sourceModelColumnsRemoved(
const QModelIndex &parent,
int first,
int last);
61 void mapDropCoordinatesToSource(
int row,
int column,
const QModelIndex &parent,
62 int *source_row,
int *source_column, QModelIndex *source_parent)
const;
64 void scheduleHeaderUpdate(Qt::Orientation orientation);
65 void emitHeaderDataChanged();
67 unsigned int sourceHadZeroRows : 1;
68 unsigned int sourceHadZeroColumns : 1;
69 unsigned int updateVerticalHeader : 1;
70 unsigned int updateHorizontalHeader : 1;