| 88 | } |
| 89 | |
| 90 | QModelIndex BinaryToolsModel::parent(const QModelIndex &child) const |
| 91 | { |
| 92 | if (auto tool = toolForIndex(child)) { |
| 93 | int groupIndex = 0; |
| 94 | for (const auto &toolsInGroup : binaryTools) { |
| 95 | if (toolsInGroup.contains(*tool)) |
| 96 | return index(groupIndex, 0); |
| 97 | ++groupIndex; |
| 98 | } |
| 99 | } |
| 100 | return QModelIndex(); |
| 101 | } |
| 102 | |
| 103 | int BinaryToolsModel::rowCount(const QModelIndex &parent) const |
| 104 | { |
no test coverage detected