]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackscene.cpp
Replace uppercase enums into camel into.
[kdenlive] / src / customtrackscene.cpp
index ba243695662e66e75c014ea529fa097e65dfdfc6..35d12061730a6662a261164e2f3d821869bcfc5d 100644 (file)
@@ -26,7 +26,7 @@ CustomTrackScene::CustomTrackScene(KdenliveDoc *doc, QObject *parent) :
         QGraphicsScene(parent),
         m_document(doc),
         m_scale(1.0, 1.0),
-        m_editMode(NORMALEDIT)
+        m_editMode(NormalEdit)
 {
 }
 
@@ -44,7 +44,8 @@ double CustomTrackScene::getSnapPointForPos(double pos, bool doSnap)
             if (qAbs((int)(pos - m_snapPoints.at(i).frames(m_document->fps()))) < maximumOffset) {
                 return m_snapPoints.at(i).frames(m_document->fps());
             }
-            if (m_snapPoints.at(i).frames(m_document->fps()) > pos) break;
+            if (m_snapPoints.at(i).frames(m_document->fps()) > pos)
+                break;
         }
     }
     return GenTime(pos, m_document->fps()).frames(m_document->fps());
@@ -55,7 +56,7 @@ void CustomTrackScene::setSnapList(const QList <GenTime>& snaps)
     m_snapPoints = snaps;
 }
 
-GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const
+GenTime CustomTrackScene::previousSnapPoint(const GenTime &pos) const
 {
     for (int i = 0; i < m_snapPoints.size(); ++i) {
         if (m_snapPoints.at(i) >= pos) {
@@ -66,7 +67,7 @@ GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const
     return GenTime();
 }
 
-GenTime CustomTrackScene::nextSnapPoint(GenTime pos) const
+GenTime CustomTrackScene::nextSnapPoint(const GenTime &pos) const
 {
     for (int i = 0; i < m_snapPoints.size(); ++i) {
         if (m_snapPoints.at(i) > pos) {
@@ -97,12 +98,12 @@ MltVideoProfile CustomTrackScene::profile() const
     return m_document->mltProfile();
 }
 
-void CustomTrackScene::setEditMode(EDITMODE mode)
+void CustomTrackScene::setEditMode(EditMode mode)
 {
     m_editMode = mode;
 }
 
-EDITMODE CustomTrackScene::editMode() const
+EditMode CustomTrackScene::editMode() const
 {
     return m_editMode;
 }