summaryrefslogtreecommitdiff
path: root/src/lib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.cpp')
-rw-r--r--src/lib.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib.cpp b/src/lib.cpp
deleted file mode 100644
index 2290472..0000000
--- a/src/lib.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <QApplication>
-#include <QMainWindow>
-#include <QWidget>
-
-#include "lib.h"
-
-// shamelessly ripped from https://stackoverflow.com/a/46456214
-AssignmentList *getMainWindow() {
- foreach(QWidget *w, QApplication::topLevelWidgets())
- if(AssignmentList *mainWin = qobject_cast<AssignmentList*>(w))
- 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;
- }
-}