| 27 | } |
| 28 | |
| 29 | QVariant AppItemModel::data(const QModelIndex &index, int role) const |
| 30 | { |
| 31 | if (!index.isValid()) |
| 32 | return QVariant(); |
| 33 | |
| 34 | if(role == Qt::ItemDataRole::UserRole) |
| 35 | return QVariant::fromValue(cache.at(index.row())); |
| 36 | else |
| 37 | return QVariant(); |
| 38 | } |
| 39 | |
| 40 | std::optional<AppNode> AppItemModel::findByNodeId(uint32_t id) |
| 41 | { |
no test coverage detected