if (!playing) {
video->pause(); // We only played to get a picture.
}
+ if (playing) {
+ QModelIndex row = events->get_last_event_qt(video->position());
+ ui->event_view->scrollTo(row, QAbstractItemView::PositionAtCenter);
+ }
update_ui_from_time(pos);
}