/** @brief Get effect parameters ready for MLT*/
static void adjustEffectParameters(EffectsParameterList ¶meters, QDomNodeList params, MltVideoProfile profile, const QString &prefix = QString());
- /** @brief Move playhead to mouse curser position if p key is pressed */
- void slotOnPlayheadKeyPressed();
+ /** @brief Move playhead to mouse curser position if defined key is pressed */
+ void slotAlignPlayheadToMousePos();
protected:
virtual void drawBackground(QPainter * painter, const QRectF & rect);
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* alignPlayhead = new KAction(i18n("Align Playhead to Mouse Position"), this);
+ alignPlayhead->setShortcut(Qt::Key_P);
+ collection.addAction("align_playhead", alignPlayhead);
+ connect(alignPlayhead, SIGNAL(triggered(bool)), this, SLOT(slotAlignPlayheadToMousePos()));
/*KAction* editTimelineClipSpeed = new KAction(i18n("Change Clip Speed"), this);
collection.addAction("change_clip_speed", editTimelineClipSpeed);
}
}
-void MainWindow::slotOnPlayheadKeyPressed()
+void MainWindow::slotAlignPlayheadToMousePos()
{
- m_activeTimeline->projectView()->slotOnPlayheadKeyPressed();
+ m_activeTimeline->projectView()->slotAlignPlayheadToMousePos();
}
#include "mainwindow.moc"
void slotSaveTimelineClip();
/** @brief Process keyframe data sent from a clip to effect / transition stack. */
void slotProcessImportKeyframes(GRAPHICSRECTITEM type, const QString& data);
- /** @brief Move playhead to mouse curser position if p key is pressed */
- void slotOnPlayheadKeyPressed();
+ /** @brief Move playhead to mouse curser position if defined key is pressed */
+ void slotAlignPlayheadToMousePos();
signals:
Q_SCRIPTABLE void abortRenderJob(const QString &url);