| 246 | } |
| 247 | |
| 248 | void |
| 249 | CellSelectionForm::commit_cv () |
| 250 | { |
| 251 | // update the cell view |
| 252 | if (m_current_cv >= 0 && m_current_cv < int (m_cellviews.size ())) { |
| 253 | |
| 254 | lay::CellTreeModel *model = dynamic_cast<lay::CellTreeModel *> (mp_ui->lv_cells->model ()); |
| 255 | if (! model) { |
| 256 | return; |
| 257 | } |
| 258 | |
| 259 | const db::Cell *cell = model->cell (mp_ui->lv_cells->selectionModel ()->currentIndex ()); |
| 260 | if (cell) { |
| 261 | m_cellviews [m_current_cv].set_cell (cell->cell_index ()); |
| 262 | } |
| 263 | |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | void |
| 268 | CellSelectionForm::view_changed (int cv) |
nothing calls this directly
no test coverage detected