| 45 | } |
| 46 | |
| 47 | QModelIndex SyncthingRecentChangesModel::index(int row, int column, const QModelIndex &parent) const |
| 48 | { |
| 49 | if (static_cast<size_t>(row) >= m_changes.size() || parent.isValid()) { |
| 50 | return QModelIndex(); |
| 51 | } |
| 52 | return createIndex(row, column, static_cast<quintptr>(-1)); |
| 53 | } |
| 54 | |
| 55 | QModelIndex SyncthingRecentChangesModel::parent(const QModelIndex &child) const |
| 56 | { |