summaryrefslogtreecommitdiff
path: root/src/frontend/qtwidgets/rule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qtwidgets/rule.cpp')
-rw-r--r--src/frontend/qtwidgets/rule.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/frontend/qtwidgets/rule.cpp b/src/frontend/qtwidgets/rule.cpp
new file mode 100644
index 0000000..85da13a
--- /dev/null
+++ b/src/frontend/qtwidgets/rule.cpp
@@ -0,0 +1,15 @@
+#include <QList>
+
+#include "rule.h"
+
+Rule::Rule(int id, int entry_id, When when, QDateTime date, QString color, QString highlight) :
+ id(id),
+ entry_id(entry_id),
+ when(when),
+ date(date),
+ color(color),
+ highlight(highlight)
+{
+}
+
+QList<Rule> Rule::rules;