summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/flite/fliteproc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 22:17:08 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 22:17:08 +0000
commitf138d74fe16092003b06f5bde9663841929cde7f (patch)
treee9c497a0e59bc7d34264ac9404740d2ea76f3de4 /kttsd/plugins/flite/fliteproc.cpp
parent3a3c4b256baee79bdcfe72c5e01b9ded9b525900 (diff)
downloadtdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.tar.gz
tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.zip
TQt4 port kdeaccessibility
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kttsd/plugins/flite/fliteproc.cpp')
-rw-r--r--kttsd/plugins/flite/fliteproc.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kttsd/plugins/flite/fliteproc.cpp b/kttsd/plugins/flite/fliteproc.cpp
index 55cb0fa..b71efef 100644
--- a/kttsd/plugins/flite/fliteproc.cpp
+++ b/kttsd/plugins/flite/fliteproc.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqstring.h>
#include <tqstringlist.h>
@@ -36,8 +36,8 @@
#include "fliteproc.moc"
/** Constructor */
-FliteProc::FliteProc( TQObject* parent, const char* name, const TQStringList& ) :
- PlugInProc( parent, name ){
+FliteProc::FliteProc( TQObject* tqparent, const char* name, const TQStringList& ) :
+ PlugInProc( tqparent, name ){
kdDebug() << "FliteProc::FliteProc: Running" << endl;
m_state = psIdle;
m_waitingStop = false;
@@ -73,7 +73,7 @@ bool FliteProc::init(KConfig* config, const TQString& configGroup){
*/
void FliteProc::sayText(const TQString &text)
{
- synth(text, TQString::null, m_fliteExePath);
+ synth(text, TQString(), m_fliteExePath);
}
/**
@@ -129,11 +129,11 @@ void FliteProc::synth(
// Encode quotation characters.
TQString saidText = text;
/*
- saidText.replace("\\\"", "#!#!");
- saidText.replace("\"", "\\\"");
- saidText.replace("#!#!", "\\\"");
+ saidText.tqreplace("\\\"", "#!#!");
+ saidText.tqreplace("\"", "\\\"");
+ saidText.tqreplace("#!#!", "\\\"");
// Remove certain comment characters.
- saidText.replace("--", "");
+ saidText.tqreplace("--", "");
saidText = "\"" + saidText + "\"";
*/
saidText += "\n";
@@ -218,13 +218,13 @@ void FliteProc::slotProcessExited(KProcess*)
void FliteProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
{
- TQString buf = TQString::fromLatin1(buffer, buflen);
+ TQString buf = TQString::tqfromLatin1(buffer, buflen);
kdDebug() << "FliteProc::slotReceivedStdout: Received output from Flite: " << buf << endl;
}
void FliteProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{
- TQString buf = TQString::fromLatin1(buffer, buflen);
+ TQString buf = TQString::tqfromLatin1(buffer, buflen);
kdDebug() << "FliteProc::slotReceivedStderr: Received error from Flite: " << buf << endl;
}
@@ -256,7 +256,7 @@ void FliteProc::ackFinished()
if (m_state == psFinished)
{
m_state = psIdle;
- m_synthFilename = TQString::null;
+ m_synthFilename = TQString();
}
}