Add test coverage of the gui project tree

This commit is contained in:
Veronica Berglyd Olsen
2024-11-24 18:39:23 +01:00
parent 32d899dbfb
commit 0449cf824d
6 changed files with 910 additions and 965 deletions
+8
View File
@@ -240,6 +240,14 @@ class ProjectNode:
self._refreshChildrenPos()
return
def setExpanded(self, state: bool) -> None:
"""Set the node's expanded state."""
if state and self._children:
self._item.setExpanded(True)
else:
self._item.setExpanded(False)
return
##
# Internal Functions
##