Commit 2daa0f80 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

accept press event in video controls

parent 4461d141
......@@ -293,9 +293,7 @@ void dtkVisualizationWidgetsVideoControls::mousePressEvent(QMouseEvent *event)
double percent = (event->pos().x() - d->progress_bar->x())/ (double)size ;
int frame_index = std::round(percent * d->progress_bar->maximum() + (1.0-percent) * d->progress_bar->minimum());
emit seekTo(frame_index);
#include "dtkVisualizationWidgetsVideoControls.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment