Commit fa2e5431 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Render preview and video preview shortcut are now editable.

parent 41f72688
......@@ -16,6 +16,5 @@ KeyboardShortcutHelper::KeyboardShortcutHelper( const QString& name, QWidget* pa
void KeyboardShortcutHelper::shortcutUpdated( const QVariant& value )
{
qDebug() << "Key sequence updated:" << value.toString();
setKey( QKeySequence( value.toString() ) );
}
......@@ -240,7 +240,7 @@ void MainWindow::initializeDockWidgets( void )
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
QShortcut* clipShortcut = new QShortcut( QKeySequence( tr( "Ctrl+Return", "Start clip preview" ) ), this );
KeyboardShortcutHelper* clipShortcut = new KeyboardShortcutHelper( "Launch media preview", this );
connect( clipShortcut, SIGNAL( activated() ), m_clipPreview, SLOT( on_pushButtonPlay_clicked() ) );
m_projectPreview = new PreviewWidget( workflowRenderer, this );
......@@ -249,7 +249,7 @@ void MainWindow::initializeDockWidgets( void )
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
QShortcut* renderShortcut = new QShortcut( QKeySequence( tr( "Space", "Start render preview" ) ), this );
KeyboardShortcutHelper* renderShortcut = new KeyboardShortcutHelper( "Start render preview", this );
connect( renderShortcut, SIGNAL( activated() ), m_projectPreview, SLOT( on_pushButtonPlay_clicked() ) );
dockManager->addDockedWidget( UndoStack::getInstance( this ),
......
......@@ -61,6 +61,5 @@ void KeyboardShortcut::save()
void KeyboardShortcut::shortcutUpdated( const QString& name, const QString& value )
{
qDebug() << "Shortcut updated:" << name << "value:" << value;
SettingsManager::getInstance()->setValue( "keyboard_shortcut", name, value );
}
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