| 171 | } |
| 172 | |
| 173 | void TaskModel::addCategory(const QString &categoryId, const QString &categoryName) |
| 174 | { |
| 175 | if (categoryId.isEmpty()) |
| 176 | return; |
| 177 | |
| 178 | CategoryData data; |
| 179 | data.displayName = categoryName; |
| 180 | categories.insert(categoryId, data); |
| 181 | } |
| 182 | |
| 183 | QList<Task> TaskModel::tasks(const QString &categoryId) const |
| 184 | { |
no test coverage detected