diff options
author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2015-01-30 13:00:20 +0100 |
---|---|---|
committer | Caroline Chao <caroline.chao@theqtcompany.com> | 2015-02-02 07:37:04 +0000 |
commit | 077b15b634edb4209dfa2cfd1ac7da6936e4d472 (patch) | |
tree | 61480b2e9f6acd8ac2107d89c2df9892a51e217e | |
parent | 2512c39e32b366d484559d8c0de8fa60642f354e (diff) | |
download | qtquickcontrols-077b15b634edb4209dfa2cfd1ac7da6936e4d472.tar.gz |
TableView: Clear row index when the delegate gets recycled
Change-Id: I1e56cd8e4432bd28eae6fbfc1e83a6522d721804
Task-number: QTBUG-42062
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
-rw-r--r-- | src/controls/TableView.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml index fb940c44..0d104b06 100644 --- a/src/controls/TableView.qml +++ b/src/controls/TableView.qml @@ -872,6 +872,7 @@ ScrollView { if (rowItem) { rowItem.visible = false; rowItem.parent = null; + rowItem.rowIndex = -1; listView.rowItemStack.push(rowItem); // return rowItem to cache } } |