qt5base-lts/tests/auto/widgets/itemviews
Thierry Bastian 1e97dbaf6c Fixed the QTreeView expansion/collpasing when animated
If you had a QTreeView with expandable items, if you tried to expand and while
the animation was still running you'd try to collpase the node,
the display would be completely broken: the items below that items would
not be visible any more except for a fraction of a second when expanding
or collapsing it again.
The problem is in the fact that when starting an animation the QTreeView
stores the state before animating. And it does that even if an animation
is already running. So the stateBeforeAnimation becomes AnimatingState and
when the animation finishes, AnimatingState is the state that is restored
breaking the painting.
Unit test is included.

Change-Id: I015212c1ed8962e6df705655099a5660f195caf3
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-08-29 20:40:17 +02:00
..
qabstractitemview Only emit the clicked() signal from views if the left button is used. 2012-08-07 16:40:07 +02:00
qcolumnview tst_QColumnView: fix unused variable warning 2012-08-22 21:51:48 +02:00
qdatawidgetmapper Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qdirmodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qfileiconprovider Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qheaderview Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qitemdelegate Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
qitemeditorfactory Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qitemview Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qlistview Take account of hidden items in QListView when using scrollTo. 2012-08-20 11:24:55 +02:00
qlistwidget Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtableview Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtablewidget Ensure that we return an invalid QTableWidgetItem when none is available. 2012-08-07 16:40:07 +02:00
qtreeview Fixed the QTreeView expansion/collpasing when animated 2012-08-29 20:40:17 +02:00
qtreewidget Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtreewidgetitemiterator Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
itemviews.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00