| 397 | } |
| 398 | |
| 399 | bool ModFolderModel::setData(const QModelIndex &index, const QVariant &value, int role) |
| 400 | { |
| 401 | if (index.row() < 0 || index.row() >= rowCount(index) || !index.isValid()) |
| 402 | { |
| 403 | return false; |
| 404 | } |
| 405 | |
| 406 | if (role == Qt::CheckStateRole) |
| 407 | { |
| 408 | return setModStatus(index.row(), Toggle); |
| 409 | } |
| 410 | return false; |
| 411 | } |
| 412 | |
| 413 | bool ModFolderModel::setModStatus(int row, ModFolderModel::ModStatusAction action) |
| 414 | { |