| 85 | } |
| 86 | |
| 87 | int ClassModel::rowCount(const QModelIndex& parent) const |
| 88 | { |
| 89 | Node* node = m_topNode; |
| 90 | |
| 91 | if (parent.isValid()) |
| 92 | node = static_cast<Node*>(parent.internalPointer()); |
| 93 | |
| 94 | return node->children().size(); |
| 95 | } |
| 96 | |
| 97 | QVariant ClassModel::data(const QModelIndex& index, int role) const |
| 98 | { |