diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2012-11-06 21:08:10 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-31 13:12:32 +0100 |
commit | 80fa4b6c8ef4d4b51c6a8c114aed2f7b1bc4db45 (patch) | |
tree | 0979a6d8870d82519fc17c3e78faf0116b78a90d /src/widgets | |
parent | 508bbe9507a21bdb1ef1216b75e9e75fceb3b179 (diff) |
QTreeView - emit expanded on expandAll
When we call QTreeView::expand expanded is emitted.
For the same reason we should emit expanded on expandAll()
This partly solves:
Task-number: QTBUG-8176
Change-Id: Ie85e724eec50980c68f626ec47dec5c1e08cc085
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/itemviews/qtreeview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp index cee47faab4..b21fd0abcf 100644 --- a/src/widgets/itemviews/qtreeview.cpp +++ b/src/widgets/itemviews/qtreeview.cpp @@ -3194,8 +3194,8 @@ void QTreeViewPrivate::layout(int i, bool recursiveExpanding, bool afterIsUninit item->total = 0; item->hasMoreSiblings = false; if ((recursiveExpanding && !(current.flags() & Qt::ItemNeverHasChildren)) || isIndexExpanded(current)) { - if (recursiveExpanding) - expandedIndexes.insert(current); + if (recursiveExpanding && storeExpanded(current)) + emit q->expanded(current); item->expanded = true; layout(last, recursiveExpanding, afterIsUninitialized); item = &viewItems[last]; |