summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-07-01 07:53:19 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-07-01 07:53:19 (GMT)
commitd33268507b4a5f4a30ee0b24db45d4b79ef8f1c3 (patch)
tree5ce839e09f037f19144c911cfa99cc768f54199b /src/gui/itemviews/qabstractitemview.cpp
parent52bf57e4fd065cd6699bd951c73191675954ec96 (diff)
downloadQt-d33268507b4a5f4a30ee0b24db45d4b79ef8f1c3.zip
Qt-d33268507b4a5f4a30ee0b24db45d4b79ef8f1c3.tar.gz
Qt-d33268507b4a5f4a30ee0b24db45d4b79ef8f1c3.tar.bz2
Auto expand of QTreeWidget does not work correctly if animated
The problem was that the internal state of the tree was not correctly reset. Patch comes from the task. Task-number: QTBUG-10850
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index 4fb93fc..15e59ba 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -79,6 +79,7 @@ QAbstractItemViewPrivate::QAbstractItemViewPrivate()
pressedAlreadySelected(false),
viewportEnteredNeeded(false),
state(QAbstractItemView::NoState),
+ stateBeforeAnimation(QAbstractItemView::NoState),
editTriggers(QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed),
lastTrigger(QAbstractItemView::NoEditTriggers),
tabKeyNavigation(false),