| 230 | } |
| 231 | |
| 232 | QModelIndex QuickOpenModel::index(int row, int column, const QModelIndex& /*parent*/) const |
| 233 | { |
| 234 | if (column >= columnCount() || row >= rowCount(QModelIndex())) { |
| 235 | return QModelIndex(); |
| 236 | } |
| 237 | if (row < 0 || column < 0) { |
| 238 | return QModelIndex(); |
| 239 | } |
| 240 | return createIndex(row, column); |
| 241 | } |
| 242 | |
| 243 | QModelIndex QuickOpenModel::parent(const QModelIndex&) const |
| 244 | { |