From c34930425fadfc4083067b9306159cd8e8ecf6c6 Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 23 Jul 2024 20:37:48 -0400 Subject: Rearrange source file locations --- src/frontend/qtwidgets/rule.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/frontend/qtwidgets/rule.h (limited to 'src/frontend/qtwidgets/rule.h') diff --git a/src/frontend/qtwidgets/rule.h b/src/frontend/qtwidgets/rule.h new file mode 100644 index 0000000..cf9abfe --- /dev/null +++ b/src/frontend/qtwidgets/rule.h @@ -0,0 +1,28 @@ +#ifndef RULE_H +#define RULE_H + +#include +#include + +struct Rule { + enum When { before, after }; + int id; + int entry_id; + When when; + QDateTime date; + QString color; // consider making this a QColor instead + QString highlight; // see color comment + + Rule( + int id, + int entry_id, + When when, + QDateTime date = QDateTime::currentDateTime(), + QString color = "", + QString highlight = "" + ); + + static QList rules; +}; + +#endif -- cgit