summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/talkfile.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-10 18:25:49 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-02-10 18:25:49 +0000
commitee09cb7f0d2635db0f01da1fb9a20dac07f357c9 (patch)
treefa53890548dd5b3bfee7ed609a25358543be4d8e /rbutil/rbutilqt/talkfile.cpp
parent7b8f4a534d71e6ca432c3a13bb2b1dd09ad052ed (diff)
downloadrockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.tar.gz
rockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.tar.bz2
rockbox-ee09cb7f0d2635db0f01da1fb9a20dac07f357c9.zip
Untie rbutil core logic from QtGui for cli:
- include QtCore instead of QtGui if possible - replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui - use QCoreApplication instead of QApplication for inherited static members. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/talkfile.cpp')
-rw-r--r--rbutil/rbutilqt/talkfile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/talkfile.cpp b/rbutil/rbutilqt/talkfile.cpp
index 478e9ea19a..3b4e82caf6 100644
--- a/rbutil/rbutilqt/talkfile.cpp
+++ b/rbutil/rbutilqt/talkfile.cpp
@@ -55,7 +55,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
- QApplication::processEvents();
+ QCoreApplication::processEvents();
connect(logger,SIGNAL(aborted()),this,SLOT(abort()));
m_logger->setProgressMax(0);
@@ -78,7 +78,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
- QApplication::processEvents();
+ QCoreApplication::processEvents();
QFileInfo fileInf = it.fileInfo();
QString toSpeak;
QString filename;
@@ -144,7 +144,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
- QApplication::processEvents();
+ QCoreApplication::processEvents();
}
m_logger->addItem(tr("Encoding of %1").arg(toSpeak),LOGINFO);
if(!m_enc->encode(wavfilename,filename))
@@ -156,7 +156,7 @@ bool TalkFileCreator::createTalkFiles(ProgressloggerInterface* logger)
return false;
}
- QApplication::processEvents();
+ QCoreApplication::processEvents();
}
//! remove the intermedia wav file, if requested