| 134 | } |
| 135 | |
| 136 | KeyTreeItem *KeyTreeModel::getItem(const QModelIndex &index) const |
| 137 | { |
| 138 | if (index.isValid()) { |
| 139 | KeyTreeItem *item = static_cast<KeyTreeItem*>(index.internalPointer()); |
| 140 | if (item) |
| 141 | return item; |
| 142 | } |
| 143 | return rootItem; |
| 144 | } |
| 145 | |
| 146 | KeyTreeItem *KeyTreeModel::getRootItem() const |
| 147 | { |
nothing calls this directly
no outgoing calls
no test coverage detected