Commit 90869ba4 authored by Damien Caliste's avatar Damien Caliste

[nemo-qml-plugin-calendar] Export the excluded property of notebooks in...

[nemo-qml-plugin-calendar] Export the excluded property of notebooks in NotebookModel. Contributes to TJC#90867
parent b96e689a
......@@ -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:
......@@ -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";
......
......@@ -46,6 +46,7 @@ public:
ColorRole,
DefaultRole,
ReadOnlyRole,
ExcludedRole,
LocalCalendarRole,
AccountIdRole,
AccountIconRole
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment