|
|
|
|
@ -30,11 +30,11 @@ class ModelSignalSpy : public QObject { |
|
|
|
|
Q_OBJECT |
|
|
|
|
public: |
|
|
|
|
explicit ModelSignalSpy(QAbstractItemModel &model) { |
|
|
|
|
connect(&model, SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(onRowsInserted(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(onRowsRemoved(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsAboutToBeInserted(QModelIndex, int, int)), this, SLOT(onRowsAboutToBeInserted(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsAboutToBeRemoved(QModelIndex, int, int)), this, SLOT(onRowsAboutToBeRemoved(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int)), this, SLOT(onRowsMoved(QModelIndex,int,int, QModelIndex, int))); |
|
|
|
|
connect(&model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(onRowsInserted(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(onRowsRemoved(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(onRowsAboutToBeInserted(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), this, SLOT(onRowsAboutToBeRemoved(QModelIndex,int,int))); |
|
|
|
|
connect(&model, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)), this, SLOT(onRowsMoved(QModelIndex,int,int,QModelIndex,int))); |
|
|
|
|
connect(&model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(onDataChanged(QModelIndex,QModelIndex))); |
|
|
|
|
connect(&model, SIGNAL(layoutChanged()), this, SLOT(onLayoutChanged())); |
|
|
|
|
connect(&model, SIGNAL(modelReset()), this, SLOT(onModelReset())); |
|
|
|
|
|