From afcae23cbf63b31a7ce111ffcd76c027b332bdf9 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 9 Mar 2024 16:53:38 -0500 Subject: Break entry/group/rule into sub-classes --- src/entry.h | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index 32cfd1a..8f632f3 100644 --- a/src/entry.h +++ b/src/entry.h @@ -2,35 +2,33 @@ #define ENTRY_H #include -#include #include #include -class Entry : public QHBoxLayout { - public: - int id; - int parent_id; - QString desc; - QDateTime due; - QString due_alt; - QUrl link; - QString color; // consider making this a QColor instead - QString highlight; // see color comment - bool done; - bool hidden; +struct Entry { + int id; + int parent_id; + QString desc; + QDateTime due; + QString due_alt; + QUrl link; + QString color; // consider making this a QColor instead + QString highlight; // see color comment + bool done; + bool hidden; - Entry( - int id, - int parent_id, - QString desc, - QDateTime due = QDateTime(), - QString due_alt = "", - QUrl link = QUrl(), - QString color = "", - QString highlight = "", - bool done = false, - bool hidden = false - ); + Entry( + int id, + int parent_id, + QString desc, + QDateTime due = QDateTime(), + QString due_alt = "", + QUrl link = QUrl(), + QString color = "", + QString highlight = "", + bool done = false, + bool hidden = false + ); }; #endif -- cgit