| 148 | } |
| 149 | |
| 150 | DeviceModel::Node *DeviceModel::nodeFor(const QModelIndex &index) const { |
| 151 | if (!index.isValid()) |
| 152 | return m_root; |
| 153 | return static_cast<Node *>(index.internalPointer()); |
| 154 | } |
| 155 | |
| 156 | QModelIndex DeviceModel::index(int row, int column, |
| 157 | const QModelIndex &parent) const { |
nothing calls this directly
no outgoing calls
no test coverage detected