]> git.sesse.net Git - kdenlive/commitdiff
make slot names more kdenlive conform
authorEd Rogalsky <ed.rogalsky@googlemail.com>
Mon, 22 Oct 2012 19:04:40 +0000 (21:04 +0200)
committerEd Rogalsky <ed.rogalsky@googlemail.com>
Mon, 22 Oct 2012 19:04:40 +0000 (21:04 +0200)
src/customtrackview.cpp
src/customtrackview.h
src/mainwindow.cpp
src/mainwindow.h

index cf3e3a135218eb9c111263ebd00ecd9cf167d177..de183f879c83acb42a65431e0f46ad5d0a019762 100644 (file)
@@ -404,7 +404,7 @@ void CustomTrackView::slotCheckPositionScrolling()
     }
 }
 
-void CustomTrackView::slotOnPlayheadKeyPressed()
+void CustomTrackView::slotAlignPlayheadToMousePos()
 {
        /* get curser point ref in screen coord */
        QPoint ps = QCursor::pos();
index 328dcc43ac8425884ac8c6d2eb5285e9b78de8fa..7db48f597959e7694603ca20248f7ec8b6c7220d 100644 (file)
@@ -304,8 +304,8 @@ public slots:
 
     /** @brief Get effect parameters ready for MLT*/
     static void adjustEffectParameters(EffectsParameterList &parameters, 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);
index 347a84581da29b0f4ec15263780972a27423855d..4a10ec80bc76ab0516fc3565cc8f14d798b20a7f 100644 (file)
@@ -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"
index 3e8445f196346904c26c9c4f52ff0649a609a1f4..67f31ea10b723663a630c9371cdcbfcd84d39e61 100644 (file)
@@ -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);