| 101 | } |
| 102 | |
| 103 | int BinaryToolsModel::rowCount(const QModelIndex &parent) const |
| 104 | { |
| 105 | if (!parent.isValid()) |
| 106 | return binaryTools.size(); |
| 107 | |
| 108 | if (toolForIndex(parent)) |
| 109 | return 0; |
| 110 | |
| 111 | bool found = false; |
| 112 | QString group = groupForIndex(parent, &found); |
| 113 | if (found) |
| 114 | return binaryTools.value(group).count(); |
| 115 | |
| 116 | return 0; |
| 117 | } |
| 118 | |
| 119 | Qt::ItemFlags BinaryToolsModel::flags(const QModelIndex &index) const |
| 120 | { |