]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackscene.h
use const ref
[kdenlive] / src / customtrackscene.h
index d0f37060acbe8d4ccfeb9ad5ed6d320c26430821..ade17bc57ad586c05afc7304f8dae9d97a1d5cbf 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
+/**
+ * @class CustomTrackScene
+ * @author Jean-Baptiste Mardelle
+ * @brief Holds all scene properties that need to be used by clip items.
+ */
 
 #ifndef CUSTOMTRACKSCENE_H
 #define CUSTOMTRACKSCENE_H
@@ -30,8 +35,6 @@
 class KdenliveDoc;
 class MltVideoProfile;
 
-/** This class holds all scene properties that need to be used by clip items */
-
 enum EDITMODE { NORMALEDIT = 0 , OVERWRITEEDIT = 1 , INSERTEDIT = 2 };
 
 class CustomTrackScene : public QGraphicsScene
@@ -41,7 +44,7 @@ class CustomTrackScene : public QGraphicsScene
 public:
     explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
     virtual ~ CustomTrackScene();
-    void setSnapList(QList <GenTime> snaps);
+    void setSnapList(const QList <GenTime>& snaps);
     GenTime previousSnapPoint(GenTime pos) const;
     GenTime nextSnapPoint(GenTime pos) const;
     double getSnapPointForPos(double pos, bool doSnap = true);