| 454 | } |
| 455 | |
| 456 | int UBDocumentTreeModel::rowCount(const QModelIndex &parent) const |
| 457 | { |
| 458 | if (parent.column() > 0) { |
| 459 | return 0; |
| 460 | } |
| 461 | |
| 462 | UBDocumentTreeNode *nodeParent = nodeFromIndex(parent); |
| 463 | if (!nodeParent) { |
| 464 | return 0; |
| 465 | } |
| 466 | |
| 467 | return nodeParent->children().count(); |
| 468 | } |
| 469 | |
| 470 | int UBDocumentTreeModel::columnCount(const QModelIndex &parent) const |
| 471 | { |
no test coverage detected