| 180 | } |
| 181 | |
| 182 | virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override |
| 183 | { |
| 184 | auto it = std::lower_bound(m_VisibleRows.begin(), m_VisibleRows.end(), sourceIndex.row()); |
| 185 | |
| 186 | int row = -1; |
| 187 | |
| 188 | if(it != m_VisibleRows.end() && *it == sourceIndex.row()) |
| 189 | row = it - m_VisibleRows.begin(); |
| 190 | |
| 191 | return createIndex(row, sourceIndex.column(), sourceIndex.internalId()); |
| 192 | } |
| 193 | |
| 194 | virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const override |
| 195 | { |
no test coverage detected