KReparentingProxyModel test has wrong connections
kitemmodels/tests/proxymodeltestapp/kreparentingproxymodel.cpp
void KReparentingProxyModel::setSourceModel(QAbstractItemModel *sourceModel)
{
Q_D(KReparentingProxyModel);
beginResetModel();
disconnect(sourceModel, SIGNAL(rowsAboutToBeInserted(QModelIndex, int, int)), this, SLOT(sourceRowsAboutToBeInserted(QModelIndex, int, int)));
disconnect(sourceModel, SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(sourceRowsInserted(QModelIndex, int, int)));
// ...
connect(sourceModel, SIGNAL(rowsAboutToBeInserted(QModelIndex, int, int)), SLOT(sourceRowsAboutToBeInserted(QModelIndex, int, int)));
connect(sourceModel, SIGNAL(rowsInserted(QModelIndex, int, int)), SLOT(sourceRowsInserted(QModelIndex, int, int)));
// ...
}
void KReparentingProxyModelPrivate::sourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
{
// ...
}
There are connections that don't get connected to any slot. Because their target slots at some point in past became members of private class.
I can't seem to port them to the modern &Pointer::toMember syntax without QObjectPrivate
API.