Remove Qt jargon from comments
This commit is contained in:
parent
429c896f5a
commit
ff48f9c7ee
|
|
@ -22,22 +22,23 @@ class DocumentModel : public QAbstractListModel {
|
||||||
Q_PROPERTY(QString document READ document WRITE setDocument NOTIFY documentChanged)
|
Q_PROPERTY(QString document READ document WRITE setDocument NOTIFY documentChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// Section fields exposed to QML
|
||||||
enum Roles {
|
enum Roles {
|
||||||
TitleRole = Qt::UserRole + 1,
|
TitleRole = Qt::UserRole + 1,
|
||||||
KeywordRole,
|
KeywordRole,
|
||||||
PriorityRole,
|
PriorityRole,
|
||||||
TagsRole, // QStringList
|
TagsRole,
|
||||||
LevelRole,
|
LevelRole,
|
||||||
ScheduledRole,
|
ScheduledRole,
|
||||||
DeadlineRole,
|
DeadlineRole,
|
||||||
SectionIdRole,
|
SectionIdRole,
|
||||||
PathRole, // full namespace path of the section directory
|
PathRole,
|
||||||
IsTodoRole, // keyword is non-empty
|
IsTodoRole,
|
||||||
IsDoneRole, // keyword is a "done" state (DONE/CANCELLED)
|
IsDoneRole,
|
||||||
BodyRole, // section content beneath the headline (lazy)
|
BodyRole,
|
||||||
PropertiesRole, // QVariantMap of property key -> value
|
PropertiesRole,
|
||||||
HasChildrenRole, // true if section has children
|
HasChildrenRole,
|
||||||
ExpandedRole, // true if section is expanded (children visible)
|
ExpandedRole,
|
||||||
};
|
};
|
||||||
Q_ENUM(Roles)
|
Q_ENUM(Roles)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue