diff options
author | Jiewen Wang <jiewen.wang@logicpd.com> | 2012-05-31 12:20:49 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-31 21:45:30 (GMT) |
commit | ebaaff84fc0355d2e026da7f5ca015280b2c7d82 (patch) | |
tree | 11a1ac00570afe696bccb2bcb8ba24270b4992ed /demos/undo | |
parent | 4ec0baf312ec2b26b1dfbee34a22b2ef7dfeccf1 (diff) | |
download | Qt-ebaaff84fc0355d2e026da7f5ca015280b2c7d82.zip Qt-ebaaff84fc0355d2e026da7f5ca015280b2c7d82.tar.gz Qt-ebaaff84fc0355d2e026da7f5ca015280b2c7d82.tar.bz2 |
Eliminate QTreeWidget drag crash
In QTreeViewPrivate::adjustViewOptionsForIndex() wrong index had been
used when referencing to array of viewItems. Variable row is set to the
index of the QModelIndex, however it is not as same as the index in
viewItems[] when there was hidden item in treeWidget. Index of viewItems[]
should be used here. Unit test is added as well.
Change-Id: Ie129cb63445bf1239ef7c5b2bc61b04dd9e81982
Task-Id: QTBUG-25333
Backport of <3be6ca3ee8c2c72f85b26a57538fd329ed811261> from Qt5
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'demos/undo')
0 files changed, 0 insertions, 0 deletions