summaryrefslogtreecommitdiff
path: root/src/assignmentList.cpp
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-02-29 18:01:05 -0500
committerLouie S <louie@example.com>2024-02-29 18:01:05 -0500
commit4b99428a0e73c9e573624b2784464ce8ae632e33 (patch)
tree5214b80e74afc4c6844c50852cdad6de4b908912 /src/assignmentList.cpp
parent9852a0ec1b73e1bce0c3f77743b426b29550e01c (diff)
Rewrite db_sqlite as class
Diffstat (limited to 'src/assignmentList.cpp')
-rw-r--r--src/assignmentList.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/assignmentList.cpp b/src/assignmentList.cpp
index 909b023..26af7ce 100644
--- a/src/assignmentList.cpp
+++ b/src/assignmentList.cpp
@@ -52,9 +52,6 @@ void AssignmentList::initializeUI() {
// create toolbar
ui.toolBar->addAction(ui.actionAdd_Group);
- // setup database
- BackendDB::init();
-
this->displayDate();
this->displayWidgets();
this->show();
@@ -68,7 +65,8 @@ void AssignmentList::displayDate() {
void AssignmentList::displayWidgets() {
QVBoxLayout *column_left = new QVBoxLayout();
QVBoxLayout *column_right = new QVBoxLayout();
- QList<Group *> groups = BackendDB::loadGroups();
+ BackendDB database;
+ QList<Group *> groups = database.loadGroups();
int i;
// clear out old layouts if they exist