| 380 | } |
| 381 | |
| 382 | bool ResourceFolderModel::validateIndex(const QModelIndex& index) const |
| 383 | { |
| 384 | if (!index.isValid()) |
| 385 | return false; |
| 386 | |
| 387 | int row = index.row(); |
| 388 | if (row < 0 || row >= m_resources.size()) |
| 389 | return false; |
| 390 | |
| 391 | return true; |
| 392 | } |
| 393 | |
| 394 | QVariant ResourceFolderModel::data(const QModelIndex& index, int role) const |
| 395 | { |