MergedProxyModel: Add FIXME
This commit is contained in:
@@ -128,6 +128,7 @@ void MergedProxyModel::RemoveSubModel(const QModelIndex &source_parent) {
|
|||||||
QModelIndex proxy_parent = mapFromSource(source_parent);
|
QModelIndex proxy_parent = mapFromSource(source_parent);
|
||||||
|
|
||||||
// We can't know how many children it had, since we can't dereference it
|
// We can't know how many children it had, since we can't dereference it
|
||||||
|
// FIXME: This is a bad idea.
|
||||||
resetting_model_ = submodel;
|
resetting_model_ = submodel;
|
||||||
beginRemoveRows(proxy_parent, 0, std::numeric_limits<int>::max() - 1);
|
beginRemoveRows(proxy_parent, 0, std::numeric_limits<int>::max() - 1);
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|||||||
Reference in New Issue
Block a user