| 173 | } |
| 174 | |
| 175 | bool ResourceFolderModel::deleteResources(const QModelIndexList& indexes) |
| 176 | { |
| 177 | if (indexes.isEmpty()) |
| 178 | return true; |
| 179 | |
| 180 | for (auto i : indexes) { |
| 181 | if (i.column() != 0) { |
| 182 | continue; |
| 183 | } |
| 184 | |
| 185 | auto& resource = m_resources.at(i.row()); |
| 186 | |
| 187 | resource->destroy(); |
| 188 | } |
| 189 | |
| 190 | update(); |
| 191 | |
| 192 | return true; |
| 193 | } |
| 194 | |
| 195 | bool ResourceFolderModel::setResourceEnabled(const QModelIndexList& indexes, EnableAction action) |
| 196 | { |
no test coverage detected