void ModelSpy::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) { append(QVariantList() << RowsAboutToBeRemoved << QVariant::fromValue(parent) << start << end); if (m_lazyPersist) doPersist(); }
void ModelSpy::layoutAboutToBeChanged() { append(QVariantList() << LayoutAboutToBeChanged); if (m_lazyPersist) doPersist(); }
void ModelSpy::modelAboutToBeReset() { append(QVariantList() << ModelAboutToBeReset); // This is called in setSourceModel for example, which is not when we want to persist. if (m_lazyPersist && m_model->hasChildren()) doPersist(); }
void Datasetore_Session_Persister_Sender::persist(vector<SessionPersistence_Content> content) { _mutex.lock(); doPersist(content); _mutex.unlock(); }