mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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--) {
|
for (int i = size - 1; i >= 0; i--) {
|
||||||
QModelIndex index = indices[i];
|
QModelIndex index = indices[i];
|
||||||
if (tocTV->isExpanded(index)
|
if (tocTV->isExpanded(index)
|
||||||
&& !isAncestor(index, tocTV->currentIndex())) {
|
&& !isAncestor(index, tocTV->currentIndex())
|
||||||
if (depth < getItemDepth(index))
|
&& depth < getItemDepth(index))
|
||||||
tocTV->collapse(index);
|
tocTV->collapse(index);
|
||||||
if (depth > 0 && index.parent() == QModelIndex())
|
|
||||||
tocTV->expandRecursively(index, depth - 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user