| 150 | } |
| 151 | |
| 152 | QModelIndex PlaceholderItemProxyModel::sibling(int row, int column, const QModelIndex& idx) const |
| 153 | { |
| 154 | const bool isPlaceHolderRow = (sourceModel() ? row == sourceModel()->rowCount() : false); |
| 155 | if (isPlaceHolderRow) { |
| 156 | return index(row, column, QModelIndex()); |
| 157 | } |
| 158 | return QIdentityProxyModel::sibling(row, column, idx); |
| 159 | } |
| 160 | |
| 161 | QModelIndex PlaceholderItemProxyModel::mapToSource(const QModelIndex& proxyIndex) const |
| 162 | { |
no test coverage detected