Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.6.0
-
None
Description
When using QAbstractItemModel::beginInsertRows it is not possible to move a row to the position below it (when having the same parent).
There seems to be a bug in the validity test : (in QAbstractItemModelPrivate::allowMove)
// Don't move the range within itself.
if (destinationParent == srcParent)
return !(destinationStart >= start && destinationStart <= end + 1);
Should be :
// Don't move the range within itself.
if (destinationParent == srcParent)
return !(destinationStart >= start && destinationStart <= end);