Make clicking items in tree views toggle expanded/collapsed, rather than always expanding

This commit is contained in:
David Sansome 2010-12-11 10:40:54 +00:00
parent 08b2bcc816
commit 2986d185e3

View File

@ -72,5 +72,5 @@ void AutoExpandingTreeView::ItemExpanded(const QModelIndex& index) {
}
void AutoExpandingTreeView::ItemClicked(const QModelIndex& index) {
expand(index);
setExpanded(index, !isExpanded(index));
}