diff options
Diffstat (limited to 'tasklist.cxx')
-rw-r--r-- | tasklist.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tasklist.cxx b/tasklist.cxx index 5850584..4810c5b 100644 --- a/tasklist.cxx +++ b/tasklist.cxx @@ -14,10 +14,10 @@ QVariant TaskList::data(QModelIndex const& index, int role) const auto task = tasks[row]; switch (role) { - case Task::IdRole: - return task.id; - case Task::SubjectRole: - return task.subject; + case IdRole: + return task.id(); + case SubjectRole: + return task.subject(); default: return QVariant(); } @@ -26,8 +26,8 @@ QVariant TaskList::data(QModelIndex const& index, int role) const QHash<int, QByteArray> TaskList::roleNames() const { return QHash<int, QByteArray>{ - {Task::IdRole, "id"}, - {Task::SubjectRole, "subject"} + {IdRole, "id"}, + {SubjectRole, "subject"} }; } |