| 393 | } |
| 394 | |
| 395 | bool ResourceFolderModel::validateIndex(const QModelIndex& index) const |
| 396 | { |
| 397 | if (!index.isValid()) |
| 398 | return false; |
| 399 | |
| 400 | int row = index.row(); |
| 401 | if (row < 0 || row >= m_resources.size()) |
| 402 | return false; |
| 403 | |
| 404 | return true; |
| 405 | } |
| 406 | |
| 407 | QVariant ResourceFolderModel::data(const QModelIndex& index, int role) const |
| 408 | { |