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/entry.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/frontend/qtwidgets/entry.h (limited to 'src/frontend/qtwidgets/entry.h') diff --git a/src/frontend/qtwidgets/entry.h b/src/frontend/qtwidgets/entry.h new file mode 100644 index 0000000..294df7b --- /dev/null +++ b/src/frontend/qtwidgets/entry.h @@ -0,0 +1,39 @@ +#ifndef ENTRY_H +#define ENTRY_H + +#include +#include +#include + +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 + ); + + static QList entries; + + // function for sorting algorithm + static bool compare(Entry a, Entry b); +}; + +#endif -- cgit