position_changed(pos);
});
-
// It's not really clear whether PgUp should be forwards or backwards,
// but mpv does at least up = forwards, so that's probably standard.
QShortcut *pgdown = new QShortcut(QKeySequence(Qt::Key_PageDown), this);
connect(ui->minus2s, &QPushButton::clicked, [this]() { ui->video->seek(-2000); });
connect(ui->plus2s, &QPushButton::clicked, [this]() { ui->video->seek(2000); });
+ connect(ui->video, &VideoWidget::mouse_back_clicked, [this]() { ui->video->seek(-2000); });
+ connect(ui->video, &VideoWidget::mouse_forward_clicked, [this]() { ui->video->seek(2000); });
connect(ui->minus1f, &QPushButton::clicked, [this]() { ui->video->seek_frames(-1); });
connect(ui->plus1f, &QPushButton::clicked, [this]() { ui->video->seek_frames(1); });
new_team.insert(players->get_player_id(row.row()));
}
events->set_team_at(ui->video->get_position(), new_team);
+ update_player_buttons(ui->video->get_position());
}
void MainWindow::update_ui_from_time(uint64_t t)