Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[nemo-qml-plugin-calendar] Export the excluded property of notebooks …
…in NotebookModel. Contributes to TJC#90867
  • Loading branch information
dcaliste committed Mar 5, 2020
1 parent b96e689 commit 90869ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/calendarnotebookmodel.cpp
Expand Up @@ -71,6 +71,8 @@ QVariant CalendarNotebookModel::data(const QModelIndex &index, int role) const
return notebook.isDefault;
case ReadOnlyRole:
return notebook.readOnly;
case ExcludedRole:
return notebook.excluded;
case LocalCalendarRole:
return notebook.localCalendar;
case AccountIdRole:
Expand Down Expand Up @@ -123,6 +125,7 @@ QHash<int, QByteArray> CalendarNotebookModel::roleNames() const
roleNames[ColorRole] = "color";
roleNames[DefaultRole] = "isDefault";
roleNames[ReadOnlyRole] = "readOnly";
roleNames[ExcludedRole] = "excluded";
roleNames[LocalCalendarRole] = "localCalendar";
roleNames[AccountIdRole] = "accountId";
roleNames[AccountIconRole] = "accountIcon";
Expand Down
1 change: 1 addition & 0 deletions src/calendarnotebookmodel.h
Expand Up @@ -46,6 +46,7 @@ class CalendarNotebookModel : public QAbstractListModel
ColorRole,
DefaultRole,
ReadOnlyRole,
ExcludedRole,
LocalCalendarRole,
AccountIdRole,
AccountIconRole
Expand Down

0 comments on commit 90869ba

Please sign in to comment.