| 1103 | } |
| 1104 | |
| 1105 | QModelIndex UBDocumentTreeModel::indexForProxy(std::shared_ptr<UBDocumentProxy> pSearch) const |
| 1106 | { |
| 1107 | UBDocumentTreeNode *proxy = findProxy(pSearch, mRootNode); |
| 1108 | if (!proxy) { |
| 1109 | return QModelIndex(); |
| 1110 | } |
| 1111 | |
| 1112 | return indexForNode(proxy); |
| 1113 | } |
| 1114 | |
| 1115 | void UBDocumentTreeModel::setRootNode(UBDocumentTreeNode *pRoot) |
| 1116 | { |
no outgoing calls
no test coverage detected