mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Remove unneeded method
which is also not available in Qt < 5.13, as it turns out.
This commit is contained in:
parent
b13685d9bb
commit
cd5a88029c
@ -637,12 +637,9 @@ void TocWidget::collapseAllOthers(int const depth)
|
||||
for (int i = size - 1; i >= 0; i--) {
|
||||
QModelIndex index = indices[i];
|
||||
if (tocTV->isExpanded(index)
|
||||
&& !isAncestor(index, tocTV->currentIndex())) {
|
||||
if (depth < getItemDepth(index))
|
||||
tocTV->collapse(index);
|
||||
if (depth > 0 && index.parent() == QModelIndex())
|
||||
tocTV->expandRecursively(index, depth - 1);
|
||||
}
|
||||
&& !isAncestor(index, tocTV->currentIndex())
|
||||
&& depth < getItemDepth(index))
|
||||
tocTV->collapse(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user