]> git.sesse.net Git - kdenlive/blobdiff - src/transition.h
Use const'ref.
[kdenlive] / src / transition.h
index a26f19d17511b55e6a03f551cfb52fe7b914f588..e779665512258ab55cf0ea70965724751461ccab 100644 (file)
@@ -53,8 +53,6 @@ public:
 
     /** @brief Returns the track number of the transition in the playlist. */
     int transitionEndTrack() const;
-    bool hasClip(const ClipItem * clip) const;
-    bool belongsToClip(const ClipItem * clip) const;
     QString transitionTag() const;
     QStringList transitionInfo() const;
     OPERATIONTYPE operationMode(QPointF pos);
@@ -70,14 +68,15 @@ public:
     void updateTransitionEndTrack(int newtrack);
     void setForcedTrack(bool force, int track);
     bool forcedTrack() const;
-    const ClipItem *referencedClip() const;
     Transition *clone();
     bool isAutomatic() const;
     void setAutomatic(bool automatic);
     bool hasGeometry();
     int defaultZValue() const;
-    /** @brief When a transition is resized, check if keyframes are out of the transition and fix if necessary. */
-    bool updateKeyframes();
+    /** @brief When a transition is resized, check if keyframes are out of the transition and fix if necessary. 
+     * @param oldEnd the previous transition end, so that when we expand the transition, if there is a keyframe at end we move it
+     */
+    bool updateKeyframes(int oldEnd);
 
 protected:
     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
@@ -92,11 +91,6 @@ private:
     /** @brief Contains the transition parameters. */
     QDomElement m_parameters;
 
-    /** @brief The clip to which the transition is attached. */
-    ClipItem *m_referenceClip;
-
-    /** @brief The second clip to which the transition is attached. */
-    ClipItem *m_secondClip;
     int m_transitionTrack;
 
     /** @brief Returns the display name for a transition type. */