| 26 | } |
| 27 | |
| 28 | int StructSelectModel::rowCount(const QModelIndex& parent) const |
| 29 | { |
| 30 | if (parent.column() > 0) |
| 31 | return 0; |
| 32 | |
| 33 | StructTreeNode* parentItem; |
| 34 | if (!parent.isValid()) |
| 35 | parentItem = m_rootNode; |
| 36 | else |
| 37 | parentItem = static_cast<StructTreeNode*>(parent.internalPointer()); |
| 38 | |
| 39 | return static_cast<int>(parentItem->getChildren().size()); |
| 40 | } |
| 41 | |
| 42 | QVariant StructSelectModel::data(const QModelIndex& index, int role) const |
| 43 | { |
nothing calls this directly
no outgoing calls
no test coverage detected