| 99 | } |
| 100 | |
| 101 | QModelIndex parent(const QModelIndex &index) const override |
| 102 | { |
| 103 | SDObject *o = obj(index); |
| 104 | |
| 105 | if(o == m_Viewer->m_Config) |
| 106 | return QModelIndex(); |
| 107 | |
| 108 | QModelIndex ret = parents[o]; |
| 109 | |
| 110 | if(!ret.isValid()) |
| 111 | return ret; |
| 112 | |
| 113 | return createIndex(ret.row(), index.column(), ret.internalPointer()); |
| 114 | } |
| 115 | |
| 116 | int rowCount(const QModelIndex &parent = QModelIndex()) const override |
| 117 | { |
no test coverage detected