| 188 | } |
| 189 | |
| 190 | QString BinaryToolsModel::groupForIndex(const QModelIndex &index, bool *found) const |
| 191 | { |
| 192 | if (index.isValid() && !index.parent().isValid() && index.column() == 0 && index.row() >= 0) { |
| 193 | const QList<QString> &keys = binaryTools.keys(); |
| 194 | if (index.row() < keys.count()) { |
| 195 | if (found) *found = true; |
| 196 | return keys.at(index.row()); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | if (found) *found = false; |
| 201 | return QString(); |
| 202 | } |
| 203 | |
| 204 | QModelIndex BinaryToolsModel::addGroup() |
| 205 | { |