| 175 | } |
| 176 | |
| 177 | QModelIndex ModListByPriorityProxy::mapToSource(const QModelIndex& proxyIndex) const |
| 178 | { |
| 179 | if (!proxyIndex.isValid()) { |
| 180 | return QModelIndex(); |
| 181 | } |
| 182 | auto* item = static_cast<TreeItem*>(proxyIndex.internalPointer()); |
| 183 | |
| 184 | return sourceModel()->index(item->index, proxyIndex.column()); |
| 185 | } |
| 186 | |
| 187 | int ModListByPriorityProxy::rowCount(const QModelIndex& parent) const |
| 188 | { |
nothing calls this directly
no test coverage detected