##// END OF EJS Templates
QXYModelMapper: Handle model reset....
Christian Kandeler -
r2773:7a4cd1d34c08
parent child
Show More
@@ -62,6 +62,7 void QXYModelMapper::setModel(QAbstractItemModel *model)
62 connect(d->m_model, SIGNAL(rowsRemoved(QModelIndex,int,int)), d, SLOT(modelRowsRemoved(QModelIndex,int,int)));
62 connect(d->m_model, SIGNAL(rowsRemoved(QModelIndex,int,int)), d, SLOT(modelRowsRemoved(QModelIndex,int,int)));
63 connect(d->m_model, SIGNAL(columnsInserted(QModelIndex,int,int)), d, SLOT(modelColumnsAdded(QModelIndex,int,int)));
63 connect(d->m_model, SIGNAL(columnsInserted(QModelIndex,int,int)), d, SLOT(modelColumnsAdded(QModelIndex,int,int)));
64 connect(d->m_model, SIGNAL(columnsRemoved(QModelIndex,int,int)), d, SLOT(modelColumnsRemoved(QModelIndex,int,int)));
64 connect(d->m_model, SIGNAL(columnsRemoved(QModelIndex,int,int)), d, SLOT(modelColumnsRemoved(QModelIndex,int,int)));
65 connect(d->m_model, SIGNAL(modelReset()), d, SLOT(initializeXYFromModel()));
65 connect(d->m_model, SIGNAL(destroyed()), d, SLOT(handleModelDestroyed()));
66 connect(d->m_model, SIGNAL(destroyed()), d, SLOT(handleModelDestroyed()));
66 }
67 }
67
68
General Comments 0
You need to be logged in to leave comments. Login now