Commit 5f969734 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Added Ctrl+Enter shortcut for clip preview.

parent 3a734e61
......@@ -287,6 +287,8 @@ void MainWindow::initializeDockWidgets( void )
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
QShortcut* clipShortcut = new QShortcut( QKeySequence( tr( "Ctrl+Return", "Start clip preview" ) ), this );
connect( clipShortcut, SIGNAL( activated() ), m_clipPreview, SLOT( on_pushButtonPlay_clicked() ) );
m_projectPreview = new PreviewWidget( new WorkflowRenderer(), this );
dockManager->addDockedWidget( m_projectPreview,
......@@ -294,8 +296,8 @@ void MainWindow::initializeDockWidgets( void )
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
QShortcut* shortcut = new QShortcut( QKeySequence( tr( "Space", "Start preview" ) ), this );
connect( shortcut, SIGNAL( activated() ), m_projectPreview, SLOT( on_pushButtonPlay_clicked() ) );
QShortcut* renderShortcut = new QShortcut( QKeySequence( tr( "Space", "Start render preview" ) ), this );
connect( renderShortcut, SIGNAL( activated() ), m_projectPreview, SLOT( on_pushButtonPlay_clicked() ) );
dockManager->addDockedWidget( UndoStack::getInstance( this ),
tr( "History" ),
......
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