summaryrefslogtreecommitdiff
path: root/src/entry.cpp
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-04-01 21:34:20 -0400
committerLouie S <louie@example.com>2024-04-04 18:25:51 -0400
commita754fced75565f4c8d0f94f41b576415f3f9dcf0 (patch)
tree5889e0b1777b198b13805bda4df84a108a9b5836 /src/entry.cpp
parent50d93e4a110533be2c45efbd853e2257d9962978 (diff)
Keep static variables based on backend information to reduce number of database calls
Diffstat (limited to 'src/entry.cpp')
-rw-r--r--src/entry.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entry.cpp b/src/entry.cpp
index 1082c1e..c95bbb0 100644
--- a/src/entry.cpp
+++ b/src/entry.cpp
@@ -1,3 +1,5 @@
+#include <QList>
+
#include "entry.h"
Entry::Entry(int id, int parent_id, QString desc, QDateTime due, QString due_alt, QUrl link, QString color, QString highlight, bool done, bool hidden) :
@@ -14,6 +16,8 @@ Entry::Entry(int id, int parent_id, QString desc, QDateTime due, QString due_alt
{
}
+QList<Entry> Entry::entries;
+
bool Entry::compare(Entry a, Entry b) {
// 1st level: sort not done before done
if(a.done != b.done)