| 104 | } |
| 105 | |
| 106 | void ModelPickerDialog::selectionChanged() |
| 107 | { |
| 108 | const QModelIndex index = m_view->selectionModel() ? m_view->selectionModel()->selectedRows().value(0) : QModelIndex(); |
| 109 | m_buttons->button(QDialogButtonBox::Ok)->setEnabled(index.isValid()); |
| 110 | } |
| 111 | |
| 112 | void ModelPickerDialog::accept() |
| 113 | { |
nothing calls this directly
no test coverage detected