diff options
author | Louie S <louie@example.com> | 2024-04-01 21:34:20 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-04-04 18:25:51 -0400 |
commit | a754fced75565f4c8d0f94f41b576415f3f9dcf0 (patch) | |
tree | 5889e0b1777b198b13805bda4df84a108a9b5836 /src/rule.cpp | |
parent | 50d93e4a110533be2c45efbd853e2257d9962978 (diff) |
Keep static variables based on backend information to reduce number of database calls
Diffstat (limited to 'src/rule.cpp')
-rw-r--r-- | src/rule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rule.cpp b/src/rule.cpp index d90a0db..85da13a 100644 --- a/src/rule.cpp +++ b/src/rule.cpp @@ -1,3 +1,5 @@ +#include <QList> + #include "rule.h" Rule::Rule(int id, int entry_id, When when, QDateTime date, QString color, QString highlight) : @@ -9,3 +11,5 @@ Rule::Rule(int id, int entry_id, When when, QDateTime date, QString color, QStri highlight(highlight) { } + +QList<Rule> Rule::rules; |