From e5bed1802f629406c47711f2a6e26f7c0286b11f Mon Sep 17 00:00:00 2001 From: Ed Rogalsky Date: Mon, 22 Oct 2012 21:04:40 +0200 Subject: [PATCH] make slot names more kdenlive conform --- src/customtrackview.cpp | 2 +- src/customtrackview.h | 4 ++-- src/mainwindow.cpp | 12 ++++++------ src/mainwindow.h | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index cf3e3a13..de183f87 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -404,7 +404,7 @@ void CustomTrackView::slotCheckPositionScrolling() } } -void CustomTrackView::slotOnPlayheadKeyPressed() +void CustomTrackView::slotAlignPlayheadToMousePos() { /* get curser point ref in screen coord */ QPoint ps = QCursor::pos(); diff --git a/src/customtrackview.h b/src/customtrackview.h index 328dcc43..7db48f59 100644 --- a/src/customtrackview.h +++ b/src/customtrackview.h @@ -304,8 +304,8 @@ public slots: /** @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); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 347a8458..4a10ec80 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1402,10 +1402,10 @@ void MainWindow::setupActions() 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); @@ -4584,9 +4584,9 @@ void MainWindow::slotProcessImportKeyframes(GRAPHICSRECTITEM type, const QString } } -void MainWindow::slotOnPlayheadKeyPressed() +void MainWindow::slotAlignPlayheadToMousePos() { - m_activeTimeline->projectView()->slotOnPlayheadKeyPressed(); + m_activeTimeline->projectView()->slotAlignPlayheadToMousePos(); } #include "mainwindow.moc" diff --git a/src/mainwindow.h b/src/mainwindow.h index 3e8445f1..67f31ea1 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -568,8 +568,8 @@ private slots: 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); -- 2.39.2