]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
space bar to play timeline
[kdenlive] / src / mainwindow.cpp
index d3b235d5ba3f8eebc34816393460e5008a731937..29a4fcb299f4cf30f5ad9630e3db1193a2aa2712 100644 (file)
@@ -233,7 +233,12 @@ void MainWindow::setupActions() {
     actionCollection()->addAction("project_settings", projectAction);
     connect(projectAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProjectSettings()));
 
-
+    KAction* monitorPlay = new KAction(this);
+    monitorPlay->setText(i18n("Play"));
+    monitorPlay->setIcon(KIcon("media-playback-start"));
+    monitorPlay->setShortcut(Qt::Key_Space);
+    actionCollection()->addAction("monitor_play", monitorPlay);
+    connect(monitorPlay, SIGNAL(triggered(bool)), m_monitorManager, SLOT(slotPlay()));
 
     KStandardAction::quit(kapp, SLOT(quit()),
                           actionCollection());
@@ -480,7 +485,7 @@ void MainWindow::slotPreferences() {
     // KConfigDialog didn't find an instance of this dialog, so lets
     // create it :
     KdenliveSettingsDialog* dialog = new KdenliveSettingsDialog(this);
-    connect(dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()));
+    connect( dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()) );
     dialog->show();
 }