qsyncable icon indicating copy to clipboard operation
qsyncable copied to clipboard

When call JsonListModel::clear(), it dosen't work for source

Open AllanTroy opened this issue 7 years ago • 0 comments

QSListModel::clear() is inherited by QSJsonListModel, but isn't overwritten or synchronized. So it resets QSListModel::m_storage but dosen't work for QSJsonListModel::m_source. Ofcourse, I can see QSJsonListModel dosen't call sync() when QSListModel::m_storage change, you may have wanted it that way. By the way, I want QSJsonListModel::m_source has some way to be in sync with QSListModel::m_storage, for example overwrite and call QSListModel::submit().

AllanTroy avatar Jul 29 '18 02:07 AllanTroy