| 83 | } |
| 84 | |
| 85 | QVariantList RecentListView::projectList() const |
| 86 | { |
| 87 | QVariantList itemList; |
| 88 | for (int i = 0; i < model.rowCount(); ++i) { |
| 89 | const auto &item = model.item(i); |
| 90 | if (!item->data(IsProject).toBool()) |
| 91 | continue; |
| 92 | |
| 93 | QVariantMap map; |
| 94 | map.insert(kKitName, item->data(KitNameRole)); |
| 95 | map.insert(kLanguage, item->data(LanguageRole)); |
| 96 | map.insert(kWorkspace, item->data(WorkspaceRole)); |
| 97 | |
| 98 | itemList << map; |
| 99 | } |
| 100 | |
| 101 | return itemList; |
| 102 | } |
| 103 | |
| 104 | QVariantList RecentListView::documentList() const |
| 105 | { |
no test coverage detected