| 158 | } |
| 159 | |
| 160 | void ModelInspector::selectionModelSelected(const QItemSelection &selected) |
| 161 | { |
| 162 | QModelIndex idx; |
| 163 | if (!selected.isEmpty()) |
| 164 | idx = selected.at(0).topLeft(); |
| 165 | if (!idx.isValid()) { |
| 166 | m_modelContentProxyModel->setSelectionModel(nullptr); |
| 167 | return; |
| 168 | } |
| 169 | m_modelContentProxyModel->setSelectionModel(qobject_cast<QItemSelectionModel *>(idx.data(ObjectModel::ObjectRole).value<QObject *>())); |
| 170 | } |
nothing calls this directly
no test coverage detected