From a754fced75565f4c8d0f94f41b576415f3f9dcf0 Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 1 Apr 2024 21:34:20 -0400 Subject: Keep static variables based on backend information to reduce number of database calls --- src/entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/entry.cpp') 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 + #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::entries; + bool Entry::compare(Entry a, Entry b) { // 1st level: sort not done before done if(a.done != b.done) -- cgit