| 192 | } |
| 193 | |
| 194 | QModelIndex PlaceholderItemProxyModel::index(int row, int column, const QModelIndex& parent) const |
| 195 | { |
| 196 | Q_ASSERT(!parent.isValid()); |
| 197 | Q_UNUSED(parent); |
| 198 | |
| 199 | const bool isPlaceHolderRow = (sourceModel() ? row == sourceModel()->rowCount() : false); |
| 200 | if (isPlaceHolderRow) { |
| 201 | return createIndex(row, column); |
| 202 | } |
| 203 | return QIdentityProxyModel::index(row, column, parent); |
| 204 | } |
| 205 | |
| 206 | bool PlaceholderItemProxyModel::validateRow(const QModelIndex& index, const QVariant& value) const |
| 207 | { |
no test coverage detected