summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/talkfile.cpp
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-15 22:57:07 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-15 22:57:07 +0000
commit1464c9b5d03c105d985320083fd36788036a0dd6 (patch)
treeeaa039f5632d5d8eb5065fb81fe462a95031c149 /rbutil/rbutilqt/talkfile.cpp
parent76ea412d5f8ea786b60aaf773e44b997f36aaa01 (diff)
downloadrockbox-1464c9b5d03c105d985320083fd36788036a0dd6.tar.gz
rockbox-1464c9b5d03c105d985320083fd36788036a0dd6.tar.bz2
rockbox-1464c9b5d03c105d985320083fd36788036a0dd6.zip
Cosmetics: remove trailing spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14723 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/talkfile.cpp')
-rw-r--r--rbutil/rbutilqt/talkfile.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/rbutil/rbutilqt/talkfile.cpp b/rbutil/rbutilqt/talkfile.cpp
index 5b8bb3f175..2096c8150b 100644
--- a/rbutil/rbutilqt/talkfile.cpp
+++ b/rbutil/rbutilqt/talkfile.cpp
@@ -41,7 +41,7 @@ bool TalkFileCreator::initEncoder()
bool TalkFileCreator::initTTS()
{
QFileInfo tts(m_TTSexec);
-
+
if(tts.exists())
{
return true;
@@ -68,14 +68,14 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
QApplication::processEvents();
-
+
connect(logger,SIGNAL(aborted()),this,SLOT(abort()));
m_logger->setProgressMax(0);
QDirIterator it(m_dir,QDirIterator::Subdirectories);
QSettings installlog(m_mountpoint + "/.rockbox/rbutil.log", QSettings::IniFormat, 0);
installlog.beginGroup("talkfiles");
// iterate over all entrys
- while (it.hasNext())
+ while (it.hasNext())
{
if(m_abort)
{
@@ -88,7 +88,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
QString toSpeak;
QString filename;
QString wavfilename;
-
+
if(fileInf.fileName() == "." || fileInf.fileName() == ".." || fileInf.suffix() == "talk")
{
it.next();
@@ -108,10 +108,10 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
filename = fileInf.absoluteFilePath() + ".talk";
}
wavfilename = filename + ".wav";
-
+
QFileInfo filenameInf(filename);
QFileInfo wavfilenameInf(wavfilename);
-
+
if(!filenameInf.exists() || m_overwriteTalk)
{
if(!wavfilenameInf.exists() || m_overwriteWav)
@@ -132,7 +132,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
}
-
+
QString now = QDate::currentDate().toString("yyyyMMdd");
if(m_removeWav)
{
@@ -142,18 +142,18 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
}
else
installlog.setValue(wavfilename.remove(m_mountpoint),now);
-
+
installlog.setValue(filename.remove(m_mountpoint),now);
it.next();
}
-
+
installlog.endGroup();
m_logger->addItem("Finished creating Talkfiles",LOGOK);
m_logger->setProgressMax(1);
m_logger->setProgressValue(1);
m_logger->abort();
-
- return true;
+
+ return true;
}