From 39434a7d8e88af758bb19bb7a47891f5f1c77179 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 9 Aug 2009 20:28:27 +0000 Subject: [PATCH] reindent svn path=/trunk/kdenlive/; revision=3812 --- src/dvdwizardchapters.cpp | 4 ++-- src/timecode.cpp | 6 +++--- src/timecode.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dvdwizardchapters.cpp b/src/dvdwizardchapters.cpp index f35ffe7f..61e984ba 100644 --- a/src/dvdwizardchapters.cpp +++ b/src/dvdwizardchapters.cpp @@ -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(); diff --git a/src/timecode.cpp b/src/timecode.cpp index 28b75c91..9a28bcba 100644 --- a/src/timecode.cpp +++ b/src/timecode.cpp @@ -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; diff --git a/src/timecode.h b/src/timecode.h index 3d310eb6..c18752fa 100644 --- a/src/timecode.h +++ b/src/timecode.h @@ -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; -- 2.39.2