Make clicking items in tree views toggle expanded/collapsed, rather than always expanding
This commit is contained in:
parent
08b2bcc816
commit
2986d185e3
@ -72,5 +72,5 @@ void AutoExpandingTreeView::ItemExpanded(const QModelIndex& index) {
|
||||
}
|
||||
|
||||
void AutoExpandingTreeView::ItemClicked(const QModelIndex& index) {
|
||||
expand(index);
|
||||
setExpanded(index, !isExpanded(index));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user