| 91 | } |
| 92 | |
| 93 | bool ListModel::setData(const QModelIndex &index, const QVariant &value, int role) |
| 94 | { |
| 95 | int pos = index.row(); |
| 96 | if (pos >= modpacks.size() || pos < 0 || !index.isValid()) |
| 97 | return false; |
| 98 | |
| 99 | modpacks[pos] = value.value<ModPlatform::IndexedPack>(); |
| 100 | |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | void ListModel::requestModVersions(ModPlatform::IndexedPack const& current, QModelIndex index) |
| 105 | { |
no test coverage detected