| 16 | namespace GammaRay { |
| 17 | namespace Protocol { |
| 18 | Protocol::ModelIndex fromQModelIndex(const QModelIndex &index) |
| 19 | { |
| 20 | if (!index.isValid()) |
| 21 | return ModelIndex(); |
| 22 | ModelIndex result = fromQModelIndex(index.parent()); |
| 23 | result.push_back(ModelIndexData(index.row(), index.column())); |
| 24 | return result; |
| 25 | } |
| 26 | |
| 27 | QModelIndex toQModelIndex(const QAbstractItemModel *model, const Protocol::ModelIndex &index) |
| 28 | { |
no test coverage detected