summaryrefslogtreecommitdiff
path: root/src/lib.cpp
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-03-14 18:46:37 -0400
committerLouie S <louie@example.com>2024-03-14 18:46:37 -0400
commit3e1d2e46ceea202120b4ff814fbd872bc6fc60f3 (patch)
treededaca23bdfb6ea98d092585de02e87b79d32b8f /src/lib.cpp
parent2e4227a8875dc9a25dd92d46d2f71eff7ae1499a (diff)
RulesDialog menu working (functionality WIP)
Diffstat (limited to 'src/lib.cpp')
-rw-r--r--src/lib.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.cpp b/src/lib.cpp
index 2815863..2290472 100644
--- a/src/lib.cpp
+++ b/src/lib.cpp
@@ -11,3 +11,12 @@ AssignmentList *getMainWindow() {
return mainWin;
return nullptr;
}
+
+void recursiveClear(QLayout *layout) {
+ QLayoutItem *child;
+ while((child = layout->takeAt(0)) != nullptr) {
+ if(child->layout()) recursiveClear(child->layout());
+ delete child->widget();
+ delete child;
+ }
+}