Commit bdc09828 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

add shortcut

parent 83699fdb
......@@ -249,6 +249,9 @@ dtkVisualizationViewVideoPlayer::dtkVisualizationViewVideoPlayer(QWidget *parent
connect(settings, SIGNAL(clicked()), d->overlay, SLOT(toggle()));
connect(open, SIGNAL(clicked()), this, SLOT(open()));
QShortcut *shortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_O), this);
connect(shortcut, &QShortcut::activated, this, &dtkVisualizationViewVideoPlayer::open);
connect(d->player, &QMediaPlayer::durationChanged, d->controls, &dtkVisualizationWidgetsVideoControls::setDuration);
connect(d->player, &QMediaPlayer::positionChanged, d->controls, &dtkVisualizationWidgetsVideoControls::setPosition);
connect(d->player, &QMediaPlayer::stateChanged, d, &dtkVisualizationViewVideoPlayerPrivate::onStateChanged);
......
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