| 1466 | } |
| 1467 | |
| 1468 | UBDocumentTreeNode *UBDocumentTreeModel::nodeFromIndex(const QModelIndex &pIndex) const |
| 1469 | { |
| 1470 | if (pIndex.isValid()) { |
| 1471 | return static_cast<UBDocumentTreeNode*>(pIndex.internalPointer()); |
| 1472 | } else { |
| 1473 | return mRootNode; |
| 1474 | } |
| 1475 | } |
| 1476 | |
| 1477 | bool UBDocumentTreeModel::nodeLessThan(const UBDocumentTreeNode *firstIndex, const UBDocumentTreeNode *secondIndex) |
| 1478 | { |
no test coverage detected