diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-17 22:28:13 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-06-29 20:03:50 +0000 |
commit | 95f6dcbae17b72c8dfebc9f97c77310151b63ceb (patch) | |
tree | 3bf62ee34dc7faa1fd5169f65a57c5032e1c940e /src/qml/types/qqmllistmodel.cpp | |
parent | a813d8a4d87e22a87722fada10710711b1d4306f (diff) |
Fix ObjectModel::move() to mark the changes as moves
QQmlObjectModel::move() created a QQmlChangeSet with moveId -1,
which made item views and controls see the changes as removals and
insertions, because QQmlChangeSet::Change::isMove() returned false.
Consequently, item views did not update the current index when the
current item was moved.
Task-number: QTBUG-60894
Change-Id: I4a64b7670c1fae12337995627437cc83efb9f1ef
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/qml/types/qqmllistmodel.cpp')
0 files changed, 0 insertions, 0 deletions