]> git.sesse.net Git - kdenlive/commitdiff
reindent
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 9 Aug 2009 20:28:27 +0000 (20:28 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 9 Aug 2009 20:28:27 +0000 (20:28 +0000)
svn path=/trunk/kdenlive/; revision=3812

src/dvdwizardchapters.cpp
src/timecode.cpp
src/timecode.h

index f35ffe7f0080775d584fa00d85c38c03e4f457c1..61e984ba518bd71e882e54360f82516932e72789 100644 (file)
@@ -37,7 +37,7 @@ DvdWizardChapters::DvdWizardChapters(bool isPal, QWidget *parent) :
     // Build monitor for chapters
 
     if (m_isPal) m_tc.setFormat(25);
-    else m_tc.setFormat(30000.0/1001, true);
+    else m_tc.setFormat(30000.0 / 1001, true);
 
     m_manager = new MonitorManager(this);
     m_manager->resetProfiles(m_tc);
@@ -136,7 +136,7 @@ void DvdWizardChapters::setVobFiles(bool isPal, const QStringList movies, const
 {
     m_isPal = isPal;
     if (m_isPal) m_tc.setFormat(25);
-    else m_tc.setFormat(30000.0/1001, true);
+    else m_tc.setFormat(30000.0 / 1001, true);
     m_manager->resetProfiles(m_tc);
     m_monitor->resetProfile();
 
index 28b75c91d3db436e5c91efe4c5e7d64be15482c3..9a28bcba5040ea8c073df9e5a2ac89c061431d17 100644 (file)
@@ -23,7 +23,7 @@ Timecode::Timecode(Formats format, double framesPerSecond, bool dropFrame) :
         m_format(format),
         m_dropFrame(dropFrame),
         m_displayedFramesPerSecond(framesPerSecond + 0.5),
-       m_realFps(framesPerSecond)
+        m_realFps(framesPerSecond)
 {
 }
 
@@ -174,7 +174,7 @@ QString Timecode::getTimecodeHH_MM_SS_FF(const GenTime & time) const
 QString Timecode::getTimecodeHH_MM_SS_FF(int frames) const
 {
     if (m_dropFrame) {
-       return getTimecodeDropFrame(frames);
+        return getTimecodeDropFrame(frames);
     }
     int seconds = frames / m_displayedFramesPerSecond;
     frames = frames % m_displayedFramesPerSecond;
@@ -241,7 +241,7 @@ QString Timecode::getTimecodeDropFrame(int frames) const
 
     // calculate how many frames need to be dropped every minute.
     int toDrop = (int) floor(600.0 * (m_displayedFramesPerSecond - m_realFps)  + 0.5);
-    
+
     int perMinute = toDrop / 9;
     int tenthMinute = toDrop % 9;
 
index 3d310eb6df7e37a1e67528d971bd1a30e010be66..c18752faf272acd7c1433ea855c1c4b8dacdf79b 100644 (file)
@@ -36,10 +36,10 @@ public:
 
     /** Set the current timecode format; this is the output format for this timecode. */
     void setFormat(double framesPerSecond, bool dropFrame = false, Formats format = HH_MM_SS_FF) {
-        m_displayedFramesPerSecond = (int) (framesPerSecond + 0.5);
+        m_displayedFramesPerSecond = (int)(framesPerSecond + 0.5);
         m_dropFrame = dropFrame;
         m_format = format;
-       m_realFps = framesPerSecond;
+        m_realFps = framesPerSecond;
     }
 
     Formats format() const {
@@ -64,7 +64,7 @@ private:
 
     QString getTimecodeHH_MM_SS_FF(const GenTime & time) const;
     QString getTimecodeHH_MM_SS_FF(int frames) const;
-    
+
     QString getTimecodeHH_MM_SS_HH(const GenTime & time) const;
     QString getTimecodeFrames(const GenTime & time) const;
     QString getTimecodeSeconds(const GenTime & time) const;