QItemSelectionModel *select = ui->event_view->selectionModel();
if (select->hasSelection()) {
int row = select->selectedRows().front().row(); // Should only be one, due to our selection behavior.
QItemSelectionModel *select = ui->event_view->selectionModel();
if (select->hasSelection()) {
int row = select->selectedRows().front().row(); // Should only be one, due to our selection behavior.