| 37 | } |
| 38 | |
| 39 | void ModelSignalMapperConnector::disconnectSignals(QAbstractItemModel *model) |
| 40 | { |
| 41 | disconnect(model, SIGNAL(destroyed()), this, SLOT(resetModel())); |
| 42 | disconnect(model, SIGNAL(columnsInserted(QModelIndex, int, int)), this, SLOT(columnsInserted(QModelIndex, int, int))); |
| 43 | disconnect(model, SIGNAL(columnsRemoved(QModelIndex, int, int)), this, SLOT(columnsRemoved(QModelIndex, int, int))); |
| 44 | disconnect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(dataChanged(QModelIndex, QModelIndex))); |
| 45 | disconnect(model, SIGNAL(layoutChanged()), this, SLOT(layoutChanged())); |
| 46 | disconnect(model, SIGNAL(modelReset()), this, SLOT(modelReset())); |
| 47 | disconnect(model, SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(rowsInserted(QModelIndex, int, int))); |
| 48 | disconnect(model, SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(rowsRemoved(QModelIndex, int, int))); |
| 49 | } |
| 50 | |
| 51 | void ModelSignalMapperConnector::resetModel() |
| 52 | { |