Add test coverage of the gui project tree

This commit is contained in:
Veronica Berglyd Olsen committed 2024-11-24 18:39:23 +01:00
1 parent 32d899dbfb
commit 0449cf824d
6 files changed
+910 -965

No files matched your search

+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
##