diff --git a/ui/src/documentmodel.h b/ui/src/documentmodel.h index 731c981..bd6b820 100644 --- a/ui/src/documentmodel.h +++ b/ui/src/documentmodel.h @@ -22,22 +22,23 @@ class DocumentModel : public QAbstractListModel { Q_PROPERTY(QString document READ document WRITE setDocument NOTIFY documentChanged) public: + // Section fields exposed to QML enum Roles { TitleRole = Qt::UserRole + 1, KeywordRole, PriorityRole, - TagsRole, // QStringList + TagsRole, LevelRole, ScheduledRole, DeadlineRole, SectionIdRole, - PathRole, // full namespace path of the section directory - IsTodoRole, // keyword is non-empty - IsDoneRole, // keyword is a "done" state (DONE/CANCELLED) - BodyRole, // section content beneath the headline (lazy) - PropertiesRole, // QVariantMap of property key -> value - HasChildrenRole, // true if section has children - ExpandedRole, // true if section is expanded (children visible) + PathRole, + IsTodoRole, + IsDoneRole, + BodyRole, + PropertiesRole, + HasChildrenRole, + ExpandedRole, }; Q_ENUM(Roles)