X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackview.h;h=31baffa9ae8edd7e88055ff2d40cc34dade10611;hb=71ad8e582bd637fa61d1f8157de79ed546257cf9;hp=f3a6fa05a129e66f139d28208b3c855557e9273e;hpb=a1759d64170bae9420c23e6e830af6b6f7a85faa;p=kdenlive diff --git a/src/customtrackview.h b/src/customtrackview.h index f3a6fa05..31baffa9 100644 --- a/src/customtrackview.h +++ b/src/customtrackview.h @@ -86,7 +86,7 @@ public: void slotAddEffect(QDomElement effect, const GenTime &pos, int track); void slotAddGroupEffect(QDomElement effect, AbstractGroupItem *group, AbstractClipItem *dropTarget = NULL); void addEffect(int track, GenTime pos, QDomElement effect); - void deleteEffect(int track, GenTime pos, QDomElement effect); + void deleteEffect(int track, const GenTime &pos, const QDomElement &effect); void updateEffect(int track, GenTime pos, QDomElement insertedEffect, bool refreshEffectStack = false); /** @brief Enable / disable a list of effects */ void updateEffectState(int track, GenTime pos, QList effectIndexes, bool disable, bool updateEffectStack); @@ -295,7 +295,7 @@ public slots: * @param skipSelectedItems if true, the selected item start and end points will not be added to snap list */ void updateSnapPoints(AbstractClipItem *selected, QList offsetList = QList (), bool skipSelectedItems = false); - void slotAddEffect(ClipItem *clip, QDomElement effect); + void slotAddEffect(ClipItem *clip, const QDomElement &effect); void slotImportClipKeyframes(GRAPHICSRECTITEM type); /** @brief Get effect parameters ready for MLT*/ @@ -399,7 +399,7 @@ private: /** Get the index of the video track that is just below current track */ int getPreviousVideoTrack(int track); - void updatePositionEffects(ClipItem * item, ItemInfo info, bool standalone = true); + void updatePositionEffects(ClipItem * item, const ItemInfo &info, bool standalone = true); bool insertDropClips(const QMimeData *data, const QPoint &pos); bool canBePastedTo(QList infoList, int type) const; bool canBePasted(QList items, GenTime offset, int trackOffset) const; @@ -414,7 +414,7 @@ private: void getTransitionAvailableSpace(AbstractClipItem *item, GenTime &minimum, GenTime &maximum); void updateClipTypeActions(ClipItem *clip); /** Whether an item can be moved to a new position without colliding with similar items */ - bool itemCollision(AbstractClipItem *item, ItemInfo newPos); + bool itemCollision(AbstractClipItem *item, const ItemInfo &newPos); /** Selects all items in the scene rect, and sets ok to false if a group going over several tracks is found in it */ QList checkForGroups(const QRectF &rect, bool *ok); /** Adjust clips under another one when working in overwrite mode */