collection.addAction("delete_timeline_clip", deleteItem);
connect(deleteItem, SIGNAL(triggered(bool)), this, SLOT(slotDeleteItem()));
+ KAction* movePlayhead = new KAction(i18n("Move Playhead"), this);
+ movePlayhead->setShortcut(Qt::Key_P);
+ collection.addAction("move_playhead", movePlayhead);
+ connect(movePlayhead, SIGNAL(triggered(bool)), this, SLOT(slotOnPlayheadKeyPressed()));
+
/*KAction* editTimelineClipSpeed = new KAction(i18n("Change Clip Speed"), this);
collection.addAction("change_clip_speed", editTimelineClipSpeed);
editTimelineClipSpeed->setData("change_speed");
}
}
+void MainWindow::slotOnPlayheadKeyPressed()
+{
+ m_activeTimeline->projectView()->slotOnPlayheadKeyPressed();
+}
#include "mainwindow.moc"