Update parent indexes first with changePersistentIndex.
authorStephen Kelly <stephen.kelly@kdab.com>
Sun, 15 Apr 2012 21:03:40 +0000 (23:03 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Apr 2012 22:47:49 +0000 (00:47 +0200)
commitda7880b0f032e67e3a2b24ec9bb47259ffd671da
tree9c2f353c0fe50a26c9b4f551b8df9e5f82499a6e
parent76d61af1e272628aa38f088ea10ec7076fae8b06
Update parent indexes first with changePersistentIndex.

Otherwise, the order of updating of the indexes will cause
inconsistent results because it will rely on ordering within a
QHash (which is indeterminate).

Task-number: QTBUG-25325

Change-Id: I7d99578c8ee2954b8562dc5aff7dc32e74d41fb5
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
tests/auto/corelib/itemmodels/qabstractitemmodel/qabstractitemmodel.pro
tests/auto/other/modeltest/dynamictreemodel.cpp