We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd36a6 commit 226f03aCopy full SHA for 226f03a
src/sas/qtgui/Plotting/Slicers/SlicerUtils.py
@@ -13,7 +13,15 @@ def generate_unique_plot_id(base_id: str, item) -> str:
13
parent_item = item if item.parent() is None else item.parent()
14
15
existing: int = 0
16
+def _row_count_for_level(parent_item, count: int):
17
for i in range(parent_item.rowCount()):
18
+ it = parent_item.child(i)
19
+ d = it.data()
20
+ if hasattr(d, "id") and isinstance(d.id, str) and d.id.startswith(base_id):
21
+ count += 1
22
+ if it.rowCount() > 0:
23
+ count += _row_count_for_level(it, count)
24
+ return count
25
it = parent_item.child(i)
26
d = it.data()
27
if hasattr(d, "id") and isinstance(d.id, str) and d.id.startswith(base_id):
0 commit comments